From 98bf2ac3fdd6f7bcb6ce45c932fc13c07fecc03f Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 Apr 2012 00:01:35 +0000 Subject: Wed Apr 25 00:01:35 UTC 2012 --- extra/gucharmap/gucharmap.install | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'extra/gucharmap/gucharmap.install') diff --git a/extra/gucharmap/gucharmap.install b/extra/gucharmap/gucharmap.install index 4de3253f6..0a9ddf4c2 100644 --- a/extra/gucharmap/gucharmap.install +++ b/extra/gucharmap/gucharmap.install @@ -1,22 +1,17 @@ -pkgname=gucharmap - post_install() { - usr/sbin/gconfpkg --install ${pkgname} + glib-compile-schemas /usr/share/glib-2.0/schemas gtk-update-icon-cache -q -t -f usr/share/icons/hicolor } pre_upgrade() { - pre_remove $1 + (( $(vercmp $2 3.3) < 0 )) && gconfpkg --uninstall gucharmap + return 0 } post_upgrade() { - post_install $1 -} - -pre_remove() { - usr/sbin/gconfpkg --uninstall ${pkgname} + post_install } post_remove() { - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + post_install } -- cgit v1.2.3-54-g00ecf