summarylogtreecommitdiffstats
path: root/mcomix-git.install
diff options
context:
space:
mode:
Diffstat (limited to 'mcomix-git.install')
-rw-r--r--mcomix-git.install44
1 files changed, 23 insertions, 21 deletions
diff --git a/mcomix-git.install b/mcomix-git.install
index 4ad5abf511f7..78c6ba086231 100644
--- a/mcomix-git.install
+++ b/mcomix-git.install
@@ -1,35 +1,37 @@
-pkgname=mcomix
-
post_install() {
- if [ -f usr/bin/xdg-icon-resource ]; then
- xdg-icon-resource forceupdate --theme hicolor &> /dev/null
- fi
- if [ -f usr/sbin/gconfpkg ]; then
- usr/sbin/gconfpkg --install ${pkgname} &> /dev/null
- fi
- update-desktop-database -q
- update-mime-database /usr/share/mime
+ if [ -f usr/bin/xdg-icon-resource ]; then
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ fi
+
+ if [ -f usr/sbin/gconfpkg ]; then
+ usr/sbin/gconfpkg --install mcomix &> /dev/null
+ fi
+
+ update-desktop-database -q
+ update-mime-database /usr/share/mime
}
pre_upgrade() {
- pre_remove $1
+ pre_remove $1
}
post_upgrade() {
- echo 'In case of any issues with zoom keybindings, delete ~/.config/mcomix/keybindings.conf'
- post_install $1
+ 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
+ if [ -f usr/sbin/gconfpkg ]; then
+ usr/sbin/gconfpkg --uninstall mcomix &> /dev/null
+ fi
}
post_remove() {
- if [ -f usr/bin/xdg-icon-resource ]; then
- xdg-icon-resource forceupdate --theme hicolor &> /dev/null
- fi
- update-desktop-database -q
- update-mime-database /usr/share/mime &> /dev/null
+ if [ -f usr/bin/xdg-icon-resource ]; then
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ fi
+
+ update-desktop-database -q
+ update-mime-database /usr/share/mime &> /dev/null
}
+