summaryrefslogtreecommitdiff
path: root/libre/mcomix-libre/mcomix.install
blob: c33c1d5a1349dbb32946be9c1627d74610a09792 (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
30
pkgname=mcomix

post_install() {
  if [ -f usr/sbin/gconfpkg ]; then
      usr/sbin/gconfpkg --install ${pkgname} &> /dev/null
  fi
  xdg-icon-resource forceupdate --theme hicolor &> /dev/null
  update-desktop-database -q
  update-mime-database usr/share/mime &> /dev/null
}

pre_upgrade() {
  pre_remove $1
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  if [ -f usr/sbin/gconfpkg ]; then
      usr/sbin/gconfpkg --uninstall ${pkgname} &> /dev/null
  fi
}

post_remove() {
  xdg-icon-resource forceupdate --theme hicolor &> /dev/null
  update-desktop-database -q
  update-mime-database usr/share/mime &> /dev/null
}