diff options
author | dysphoria | 2022-02-13 17:38:40 +0000 |
---|---|---|
committer | dysphoria | 2022-02-13 17:38:40 +0000 |
commit | 487c7668cdc6826098c0c009a2cf27b7bc0fedba (patch) | |
tree | 42e23617094b52202cdc3f52547ddfb0b17d8619 /mcomix-git.install | |
parent | c163e05c3ee13004e15180f38b96d4d56db580a0 (diff) | |
download | aur-487c7668cdc6826098c0c009a2cf27b7bc0fedba.tar.gz |
[upd] bump to 2.0.0
Diffstat (limited to 'mcomix-git.install')
-rw-r--r-- | mcomix-git.install | 44 |
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 } + |