summaryrefslogtreecommitdiff
path: root/libre/mcomix-libre/mcomix.install
blob: 2d3c6c3e3548498ea1924dd80991db524d2693c5 (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
31
32
pkgname=mcomix

post_install() {
  if [ -f usr/bin/xdg-icon-resource ]; then
      xdg-icon-resource forceupdate
  fi
  if [ -f usr/sbin/gconfpkg ]; then
      usr/sbin/gconfpkg --install ${pkgname}
  fi
  update-desktop-database -q
}

pre_upgrade() {
  pre_remove $1
}

post_upgrade() {
  post_install $1
}

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

post_remove() {
  if [ -f usr/bin/xdg-icon-resource ]; then
      xdg-icon-resource forceupdate
  fi
  update-desktop-database -q
}