summaryrefslogtreecommitdiff
path: root/extra/gnome-power-manager/gnome-power-manager.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gnome-power-manager/gnome-power-manager.install')
-rw-r--r--extra/gnome-power-manager/gnome-power-manager.install17
1 files changed, 7 insertions, 10 deletions
diff --git a/extra/gnome-power-manager/gnome-power-manager.install b/extra/gnome-power-manager/gnome-power-manager.install
index ee19ac94d..4666938db 100644
--- a/extra/gnome-power-manager/gnome-power-manager.install
+++ b/extra/gnome-power-manager/gnome-power-manager.install
@@ -1,22 +1,19 @@
-pkgname=gnome-power-manager
-
post_install() {
- usr/sbin/gconfpkg --install ${pkgname}
+ usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ gtk-update-icon-cache -q -t -f usr/share/icons/gnome
}
pre_upgrade() {
-pre_remove $1
+ if (( $(vercmp $2 2.91.92) < 0 )); then
+ usr/sbin/gconfpkg --uninstall gnome-power-manager
+ fi
}
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
}