aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-06-20 17:07:34 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-06-23 07:48:06 +0700
commita74c37dc1ddb5b5a9b6e816d337e637f1d427ed0 (patch)
tree88b9e71b8b0d13dbab704fbf0c29a87a1e4e8815
parentdee7cb9929b689f604eaef66608a40fa9b19dd5e (diff)
games/manaplus: Fix doinst.sh.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/manaplus/doinst.sh11
1 files changed, 4 insertions, 7 deletions
diff --git a/games/manaplus/doinst.sh b/games/manaplus/doinst.sh
index d51871bfb1f8..65c7e2eeb9aa 100644
--- a/games/manaplus/doinst.sh
+++ b/games/manaplus/doinst.sh
@@ -1,12 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then
- /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
-if [ -x /usr/bin/gtk-update-icon-cache ]; then
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
fi
-
-# Fix sbopkglint
-#--- usr/share/icons should not contain files with executable permission:
-#-rwxr-xr-x 1 root root 8075 Jun 24 14:01 usr/share/icons/hicolor/scalable/apps/manaplus.svg
-chmod 744 $CWD/usr/share/icons/hicolor/scalable/apps/manaplus.svg