summaryrefslogtreecommitdiff
path: root/community/simple-scan/simple-scan.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/simple-scan/simple-scan.install')
-rw-r--r--community/simple-scan/simple-scan.install22
1 files changed, 8 insertions, 14 deletions
diff --git a/community/simple-scan/simple-scan.install b/community/simple-scan/simple-scan.install
index 9893818d9..5919c0b22 100644
--- a/community/simple-scan/simple-scan.install
+++ b/community/simple-scan/simple-scan.install
@@ -1,24 +1,18 @@
-pkgname=simple-scan
-
post_install() {
- echo -n "Installing GConf schemas..."
- usr/sbin/gconfpkg --install ${pkgname}
-
- [ $? -eq 0 ] && echo " Done." || echo " FAILED!"
+ usr/bin/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
+ if (( $(vercmp $2 3.1.3) < 0 )); then
+ usr/sbin/gconfpkg --uninstall simple-scan
+ fi
}
post_upgrade() {
- post_install $1
+ post_install
}
-pre_remove() {
- echo -n "Removing GConf schemas..."
- usr/sbin/gconfpkg --uninstall ${pkgname}
-
- [ $? -eq 0 ] && echo " Done." || echo " FAILED!"
+post_remove() {
+ post_install
}
-