summaryrefslogtreecommitdiff
path: root/extra/gnumeric/gnumeric.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-25 02:32:08 -0800
committerroot <root@rshg054.dnsready.net>2012-12-25 02:32:08 -0800
commit6fbdd2899f39266e458531dcffefb85b9ce8d1b9 (patch)
tree7d290e717ddd4dab90362a017be197c551dd2ae0 /extra/gnumeric/gnumeric.install
parent6003fa8908f984a4696fade78b69a8803eabcc6c (diff)
Tue Dec 25 02:27:55 PST 2012
Diffstat (limited to 'extra/gnumeric/gnumeric.install')
-rw-r--r--extra/gnumeric/gnumeric.install17
1 files changed, 5 insertions, 12 deletions
diff --git a/extra/gnumeric/gnumeric.install b/extra/gnumeric/gnumeric.install
index 50ee0a7e2..b4b8223dd 100644
--- a/extra/gnumeric/gnumeric.install
+++ b/extra/gnumeric/gnumeric.install
@@ -1,26 +1,19 @@
-pkgname=gnumeric
-
post_install() {
usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas
- usr/sbin/gconfpkg --install ${pkgname}
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
update-desktop-database -q
}
pre_upgrade() {
- pre_remove $1
+ if [ -f usr/share/gconf/schemas/gnumeric.schemas ]; then
+ usr/sbin/gconfpkg --uninstall gnumeric
+ fi
}
post_upgrade() {
- post_install $1
-}
-
-pre_remove() {
- usr/sbin/gconfpkg --uninstall ${pkgname}
+ post_install
}
post_remove() {
- 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
+ post_install
}