gtk2: remove commands in install

This commit is contained in:
Chaoting Liu 2018-08-31 15:21:22 +02:00
parent 82a38abb12
commit de59abb066
2 changed files with 1 additions and 16 deletions

View File

@ -1,6 +1,6 @@
pkgname=gtk2
pkgver=2.24.32
pkgrel=2
pkgrel=3
# When updating, remember to also update lib32-gtk2
pkgdesc="GObject-based multi-platform GUI toolkit (legacy)"
arch=(x86_64)

View File

@ -1,18 +1,3 @@
post_install() {
/usr/bin/gtk-query-immodules-2.0 --update-cache
}
post_upgrade() {
if (( $(vercmp $2 2.24.20) < 0 )); then
rm -f /etc/gtk-2.0/gtk.immodules
fi
post_install
}
pre_remove() {
rm -f etc/gtk-2.0/gtk.immodules &>/dev/null
rm -f etc/gtk-2.0/gdk-pixbuf.loaders &>/dev/null
rm -f /usr/lib/gtk-2.0/2.10.0/immodules.cache &>/dev/null
}