summaryrefslogtreecommitdiff
path: root/community/comix/comix.install
blob: 8e99f7f911d6f497e8ce464d840db35b8c5f8bdb (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
pkgname=comix

post_install() {
  which xdg-icon-resource >/dev/null 2>&1 && xdg-icon-resource forceupdate || true
  which gconfpkg >/dev/null 2>&1 && usr/sbin/gconfpkg --install ${pkgname}
  echo "update desktop mime database..."
  update-desktop-database -q
}

pre_upgrade() {
  pre_remove $1
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  which gconfpkg >/dev/null 2>&1 && usr/sbin/gconfpkg --uninstall ${pkgname}
}

post_remove() {
  which xdg-icon-resource >/dev/null 2>&1 && xdg-icon-resource forceupdate || true
  echo "update desktop mime database..."
  update-desktop-database -q
}