summaryrefslogtreecommitdiff
path: root/extra/gthumb/gthumb.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gthumb/gthumb.install')
-rw-r--r--extra/gthumb/gthumb.install19
1 files changed, 7 insertions, 12 deletions
diff --git a/extra/gthumb/gthumb.install b/extra/gthumb/gthumb.install
index 6046ebb6f..9d4e7822f 100644
--- a/extra/gthumb/gthumb.install
+++ b/extra/gthumb/gthumb.install
@@ -1,24 +1,19 @@
-pkgname=gthumb
-
post_install() {
- usr/sbin/gconfpkg --install ${pkgname}
+ glib-compile-schemas /usr/share/glib-2.0/schemas
update-desktop-database -q
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
}
pre_upgrade() {
- pre_remove $1
+ if (( $(vercmp $2 2.90.1) < 0 )); then
+ gconfpkg --uninstall gthumb
+ fi
}
post_upgrade() {
- post_install $1
-}
-
-pre_remove() {
- usr/sbin/gconfpkg --uninstall ${pkgname}
+ post_install
}
post_remove() {
- update-desktop-database -q
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ post_install
}