summaryrefslogtreecommitdiff
path: root/community/cinnamon/cinnamon.install
blob: 901fd95c956ad75517f4c01b1bd4fc2e8dc45ec4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
post_install() {
  glib-compile-schemas usr/share/glib-2.0/schemas
}

pre_upgrade() {
  if [ -f /usr/share/gconf/schemas/cinnamon.schemas ]; then
    gconfpkg --uninstall cinnamon
  fi

  if [ "$(vercmp 1.6.7-6 "$2")" -eq 1 ]; then
    if [[ -h '/usr/lib/libgnome-desktop-3.so.2' ]]; then
      if [[ $(uname -m) == 'i686' ]]; then
        unlink /usr/lib/libgnome-desktop-3.so.2
      fi
    fi
  fi
}

post_upgrade() {
  post_install
}

pre_remove() {
  pre_upgrade
}

post_remove() {
  post_install
}