summaryrefslogtreecommitdiff
path: root/libre/mcomix-libre/mcomix.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-18 00:02:28 +0000
committerroot <root@rshg054.dnsready.net>2012-08-18 00:02:28 +0000
commit948da5eabcbf8d74270e661d0730ba1c203913f5 (patch)
tree8536fd0b4622f9f6c77cb4716bf5c315c457038a /libre/mcomix-libre/mcomix.install
parentbbf2c63849bdf1654e767058f277da2e983c5f0b (diff)
Sat Aug 18 00:02:28 UTC 2012
Diffstat (limited to 'libre/mcomix-libre/mcomix.install')
-rw-r--r--libre/mcomix-libre/mcomix.install32
1 files changed, 32 insertions, 0 deletions
diff --git a/libre/mcomix-libre/mcomix.install b/libre/mcomix-libre/mcomix.install
new file mode 100644
index 000000000..2d3c6c3e3
--- /dev/null
+++ b/libre/mcomix-libre/mcomix.install
@@ -0,0 +1,32 @@
+pkgname=mcomix
+
+post_install() {
+ if [ -f usr/bin/xdg-icon-resource ]; then
+ xdg-icon-resource forceupdate
+ fi
+ if [ -f usr/sbin/gconfpkg ]; then
+ usr/sbin/gconfpkg --install ${pkgname}
+ fi
+ update-desktop-database -q
+}
+
+pre_upgrade() {
+ pre_remove $1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ if [ -f usr/sbin/gconfpkg ]; then
+ usr/sbin/gconfpkg --uninstall ${pkgname}
+ fi
+}
+
+post_remove() {
+ if [ -f usr/bin/xdg-icon-resource ]; then
+ xdg-icon-resource forceupdate
+ fi
+ update-desktop-database -q
+}