mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-01-23 17:33:32 +08:00
gtk2: remove commands in install
This commit is contained in:
parent
82a38abb12
commit
de59abb066
@ -1,6 +1,6 @@
|
|||||||
pkgname=gtk2
|
pkgname=gtk2
|
||||||
pkgver=2.24.32
|
pkgver=2.24.32
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
# When updating, remember to also update lib32-gtk2
|
# When updating, remember to also update lib32-gtk2
|
||||||
pkgdesc="GObject-based multi-platform GUI toolkit (legacy)"
|
pkgdesc="GObject-based multi-platform GUI toolkit (legacy)"
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
|
@ -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() {
|
pre_remove() {
|
||||||
rm -f etc/gtk-2.0/gtk.immodules &>/dev/null
|
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
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user