summaryrefslogtreecommitdiff
path: root/libre/mcomix-libre/mcomix.install
blob: 82047a2028965bd26d81e087c89f5f13099acb49 (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
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() {
  echo 'In case of any issues with zoom keybindings, delete ~/.config/mcomix/keybindings.conf.'
  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
}