summaryrefslogtreecommitdiff
path: root/libre/mcomix/mcomix.install
diff options
context:
space:
mode:
Diffstat (limited to 'libre/mcomix/mcomix.install')
-rw-r--r--libre/mcomix/mcomix.install31
1 files changed, 31 insertions, 0 deletions
diff --git a/libre/mcomix/mcomix.install b/libre/mcomix/mcomix.install
new file mode 100644
index 000000000..82047a202
--- /dev/null
+++ b/libre/mcomix/mcomix.install
@@ -0,0 +1,31 @@
+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() {
+ echo 'In case of any issues with zoom keybindings, delete ~/.config/mcomix/keybindings.conf.'
+ 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
+}