Commit de59abb0 authored by Chaoting Liu's avatar Chaoting Liu

gtk2: remove commands in install

parent 82a38abb
Pipeline #1141 passed with stages
in 8 minutes and 12 seconds
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)
......
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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment