diff options
author | Lartza | 2015-07-07 14:43:19 +0300 |
---|---|---|
committer | Lartza | 2015-07-07 14:43:19 +0300 |
commit | aa8229a2ca37652778c11dffe8015901763fb35f (patch) | |
tree | af6802e187c4bd6166862cc74ecb15ca8468027d /lottanzb.install | |
download | aur-aa8229a2ca37652778c11dffe8015901763fb35f.tar.gz |
Initial import
Diffstat (limited to 'lottanzb.install')
-rw-r--r-- | lottanzb.install | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lottanzb.install b/lottanzb.install new file mode 100644 index 000000000000..e1b8436cde57 --- /dev/null +++ b/lottanzb.install @@ -0,0 +1,32 @@ +niceinfo() { +cat <<EOF +>> +>> If you want to use this for downloading to this machine, +>> you must install sabnzbd!!! +>> +EOF +} + +post_install() { + update-mime-database usr/share/mime >/dev/null + update-desktop-database -q >/dev/null + gtk-update-icon-cache -q -f -t /usr/share/icons/gnome >/dev/null + gtk-update-icon-cache -q -f -t /usr/share/icons/hicolor >/dev/null + niceinfo +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + update-mime-database usr/share/mime >/dev/null + update-desktop-database -q >/dev/null + gtk-update-icon-cache -q -f -t /usr/share/icons/gnome >/dev/null + gtk-update-icon-cache -q -f -t /usr/share/icons/hicolor >/dev/null +} + +op=$1 +shift + +$op $* |