From 730ac1fa5bef1ab3ecf8469a5b5913f0274dce8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Thu, 4 Sep 2014 23:47:34 -0300 Subject: mcomix: remove libre suffix and add complex pkgrel --- libre/mcomix/mcomix.install | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 libre/mcomix/mcomix.install (limited to 'libre/mcomix/mcomix.install') 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 +} -- cgit v1.2.3-2-g168b