summaryrefslogtreecommitdiff
path: root/community/simple-scan/simple-scan.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-10-05 23:14:45 +0000
committerroot <root@rshg054.dnsready.net>2011-10-05 23:14:45 +0000
commit068f1f30c0bba25b6b88cefbe982a72535fa1951 (patch)
tree1cbc872f02ee675155a7dc79fc637b4f2ed7e5e8 /community/simple-scan/simple-scan.install
parent3567a49f79d2dbf828b723ab54982fa6c7ea1c80 (diff)
Wed Oct 5 23:14:44 UTC 2011
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
}
-