games/manaplus: Fix doinst.sh.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-06-20 17:07:34 -04:00 committed by Willy Sudiarto Raharjo
parent dee7cb9929
commit a74c37dc1d
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 4 additions and 7 deletions

View File

@ -1,12 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then 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 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 /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
fi
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