diff options
author | Michael Lass | 2015-06-08 20:53:11 +0200 |
---|---|---|
committer | Michael Lass | 2015-06-08 20:53:11 +0200 |
commit | 6305cf2b58c8f4266384221f21ea06150e03f620 (patch) | |
tree | 617f403a5fb72bf95445fa40a8d2cd385888430c /tvbrowser.install | |
download | aur-6305cf2b58c8f4266384221f21ea06150e03f620.tar.gz |
Initial commit
Diffstat (limited to 'tvbrowser.install')
-rw-r--r-- | tvbrowser.install | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tvbrowser.install b/tvbrowser.install new file mode 100644 index 000000000000..404acb087ed1 --- /dev/null +++ b/tvbrowser.install @@ -0,0 +1,25 @@ +available() { + which "$1" >/dev/null 2>&1 +} + +updateiconcache() { + touch --no-create /usr/share/icons/hicolor + + if available gtk-update-icon-cache + then + gtk-update-icon-cache -tq /usr/share/icons/hicolor + fi +} + +post_install() { + updateiconcache +} + +post_upgrade() { + updateiconcache +} + +pre_remove() { + updateiconcache +} + |