summaryrefslogtreecommitdiff
path: root/libre/mcomix/mcomix.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-04 23:47:34 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-04 23:47:34 -0300
commit730ac1fa5bef1ab3ecf8469a5b5913f0274dce8f (patch)
tree3f03f5d3af88a585d78e1c7aaa9cc775ddc493b7 /libre/mcomix/mcomix.install
parentac32971510e741448296a2f7acfc59709d92fad9 (diff)
downloadabslibre-730ac1fa5bef1ab3ecf8469a5b5913f0274dce8f.tar.gz
abslibre-730ac1fa5bef1ab3ecf8469a5b5913f0274dce8f.tar.bz2
abslibre-730ac1fa5bef1ab3ecf8469a5b5913f0274dce8f.zip
mcomix: remove libre suffix and add complex pkgrel
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
+}