summaryrefslogtreecommitdiff
path: root/staging/gnucash/gnucash.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-11 00:02:44 +0000
committerroot <root@rshg054.dnsready.net>2012-08-11 00:02:44 +0000
commit073a889144d77058f1eff2100ad48a538bdc0422 (patch)
tree96e013a0c34f142dccb769073164cd0fd82dea95 /staging/gnucash/gnucash.install
parent9f2bff24c46fba67eca7c8125306a9dcd8ea8c73 (diff)
Sat Aug 11 00:02:44 UTC 2012
Diffstat (limited to 'staging/gnucash/gnucash.install')
-rw-r--r--staging/gnucash/gnucash.install34
1 files changed, 34 insertions, 0 deletions
diff --git a/staging/gnucash/gnucash.install b/staging/gnucash/gnucash.install
new file mode 100644
index 000000000..d6a48c31b
--- /dev/null
+++ b/staging/gnucash/gnucash.install
@@ -0,0 +1,34 @@
+pkgname=gnucash
+info_dir=usr/share/info
+info_files=(gnucash-design.info)
+
+post_install() {
+ usr/sbin/gconfpkg --install ${pkgname}
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-desktop-database -q
+ [ -x usr/bin/install-info ] || return 0
+ for f in ${info_files[@]}; do
+ usr/bin/install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+ done
+}
+
+pre_upgrade() {
+ pre_remove $1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ usr/sbin/gconfpkg --uninstall ${pkgname}
+ [ -x usr/bin/install-info ] || return 0
+ for f in ${info_files[@]}; do
+ usr/bin/install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+ done
+}
+
+post_remove() {
+ update-desktop-database -q
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}