summaryrefslogtreecommitdiff
path: root/extra/yelp/yelp.install
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-01 22:33:26 +0000
committerroot <root@rshg047.dnsready.net>2011-05-01 22:33:26 +0000
commit40f0b1c7106cc1fed13f14e80f083ecd69c416f5 (patch)
treefaeb03af48db54c663f74f3f188b9c1c56ca6a0b /extra/yelp/yelp.install
parentc173ac862828a54925737fc1d90ede1dd09a312c (diff)
Sun May 1 22:33:26 UTC 2011
Diffstat (limited to 'extra/yelp/yelp.install')
-rw-r--r--extra/yelp/yelp.install19
1 files changed, 8 insertions, 11 deletions
diff --git a/extra/yelp/yelp.install b/extra/yelp/yelp.install
index 3a893b043..f3bf19a93 100644
--- a/extra/yelp/yelp.install
+++ b/extra/yelp/yelp.install
@@ -1,22 +1,19 @@
-pkgname=yelp
-
post_install() {
- gconfpkg --install ${pkgname}
- gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+ usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-desktop-database -q
}
pre_upgrade() {
- pre_remove $1
+ if (( $(vercmp $2 2.90.0) < 0 )); then
+ usr/sbin/gconfpkg --uninstall yelp
+ fi
}
post_upgrade() {
- post_install $1
-}
-
-pre_remove() {
- gconfpkg --uninstall ${pkgname}
+ post_install
}
post_remove() {
- gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+ post_install
}