summaryrefslogtreecommitdiff
path: root/extra/anjuta/anjuta.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/anjuta/anjuta.install')
-rw-r--r--extra/anjuta/anjuta.install23
1 files changed, 8 insertions, 15 deletions
diff --git a/extra/anjuta/anjuta.install b/extra/anjuta/anjuta.install
index 98f44a08f..c6fcfec11 100644
--- a/extra/anjuta/anjuta.install
+++ b/extra/anjuta/anjuta.install
@@ -1,28 +1,21 @@
-pkgname=anjuta
-
post_install() {
- usr/sbin/gconfpkg --install ${pkgname}
- update-mime-database usr/share/mime > /dev/null
+ usr/bin/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/gnome
- update-desktop-database -q
+ update-mime-database usr/share/mime > /dev/null
}
pre_upgrade() {
- pre_remove $1
+ if (( $(vercmp $2 2.90.0) < 0 )); then
+ usr/sbin/gconfpkg --uninstall anjuta
+ fi
}
post_upgrade() {
- post_install $1
-}
-
-pre_remove() {
- usr/sbin/gconfpkg --uninstall ${pkgname}
+ post_install
}
post_remove() {
- update-mime-database usr/share/mime > /dev/null
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
- gtk-update-icon-cache -q -t -f usr/share/icons/gnome
- update-desktop-database -q
+ post_install
}