diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-08-17 15:45:15 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-08-17 15:45:15 -0300 |
commit | 7a4f3457a1e00122f6b121b5c7511bfba41a29c5 (patch) | |
tree | 7645f7ce5f199c5b38718ed4fd5da05bf3b4112f /libre/mcomix-libre/mcomix.install | |
parent | 66d766a991a3ea480fd7c59c5e0421b02988c43a (diff) | |
download | abslibre-7a4f3457a1e00122f6b121b5c7511bfba41a29c5.tar.gz abslibre-7a4f3457a1e00122f6b121b5c7511bfba41a29c5.tar.bz2 abslibre-7a4f3457a1e00122f6b121b5c7511bfba41a29c5.zip |
mcomix-libre: new package for [libre] repo
Diffstat (limited to 'libre/mcomix-libre/mcomix.install')
-rw-r--r-- | libre/mcomix-libre/mcomix.install | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libre/mcomix-libre/mcomix.install b/libre/mcomix-libre/mcomix.install new file mode 100644 index 000000000..2d3c6c3e3 --- /dev/null +++ b/libre/mcomix-libre/mcomix.install @@ -0,0 +1,32 @@ +pkgname=mcomix + +post_install() { + if [ -f usr/bin/xdg-icon-resource ]; then + xdg-icon-resource forceupdate + fi + if [ -f usr/sbin/gconfpkg ]; then + usr/sbin/gconfpkg --install ${pkgname} + fi + update-desktop-database -q +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + if [ -f usr/sbin/gconfpkg ]; then + usr/sbin/gconfpkg --uninstall ${pkgname} + fi +} + +post_remove() { + if [ -f usr/bin/xdg-icon-resource ]; then + xdg-icon-resource forceupdate + fi + update-desktop-database -q +} |