summarylogtreecommitdiffstats
path: root/luv-icon-theme-git.install
diff options
context:
space:
mode:
authorGordian Edenhofer2016-04-27 00:24:58 +0200
committerGordian Edenhofer2016-04-27 00:24:58 +0200
commitef2b2b18f80e43c054bcf4577155604d194e7d83 (patch)
tree0fb81514fb964f493b458a0201beb3b5459fcc10 /luv-icon-theme-git.install
parent219d08ef2ed55bbd8bea0a7d3bb9594becfc7ea6 (diff)
downloadaur-ef2b2b18f80e43c054bcf4577155604d194e7d83.tar.gz
upgpkg: luv-icon-theme-git 0.3.r4.g3c53fec-1
Correct path to icon-theme for cache generation in .install, since it was renamed to luv. Add post_remove function in .install to remove the icon-theme after the package removal.
Diffstat (limited to 'luv-icon-theme-git.install')
-rw-r--r--luv-icon-theme-git.install12
1 files changed, 11 insertions, 1 deletions
diff --git a/luv-icon-theme-git.install b/luv-icon-theme-git.install
index a4387ad4c277..054fd1281235 100644
--- a/luv-icon-theme-git.install
+++ b/luv-icon-theme-git.install
@@ -1,6 +1,7 @@
_update() {
echo -e "\e[34;1m==>\e[39;1m Updating icon cache...\e[0m"
- gtk-update-icon-cache -q /usr/share/icons/Flattr
+ gtk-update-icon-cache -q /usr/share/icons/Luv
+ gtk-update-icon-cache -q /usr/share/icons/Luv\ Dark
}
post_install() {
@@ -10,3 +11,12 @@ post_install() {
post_upgrade() {
_update
}
+
+post_remove() {
+ echo -e "\e[34;1m==>\e[39;1m Removing icon cache...\e[0m"
+ rm -f /usr/share/icons/Luv/icon-theme.cache
+ rm -f /usr/share/icons/Luv\ Dark/icon-theme.cache
+
+ rmdir --ignore-fail-on-non-empty /usr/share/icons/Luv
+ rmdir --ignore-fail-on-non-empty /usr/share/icons/Luv\ Dark
+}