summaryrefslogtreecommitdiff
path: root/libre/mcomix-libre/mcomix.install
diff options
context:
space:
mode:
Diffstat (limited to 'libre/mcomix-libre/mcomix.install')
-rw-r--r--libre/mcomix-libre/mcomix.install30
1 files changed, 30 insertions, 0 deletions
diff --git a/libre/mcomix-libre/mcomix.install b/libre/mcomix-libre/mcomix.install
new file mode 100644
index 000000000..c33c1d5a1
--- /dev/null
+++ b/libre/mcomix-libre/mcomix.install
@@ -0,0 +1,30 @@
+pkgname=mcomix
+
+post_install() {
+ if [ -f usr/sbin/gconfpkg ]; then
+ usr/sbin/gconfpkg --install ${pkgname} &> /dev/null
+ fi
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+ update-mime-database usr/share/mime &> /dev/null
+}
+
+pre_upgrade() {
+ pre_remove $1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ if [ -f usr/sbin/gconfpkg ]; then
+ usr/sbin/gconfpkg --uninstall ${pkgname} &> /dev/null
+ fi
+}
+
+post_remove() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+ update-mime-database usr/share/mime &> /dev/null
+}