games/yar: 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-01-07 22:41:44 -05:00 committed by Willy Sudiarto Raharjo
parent ecf033385d
commit 8522cfe6a1
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 8 additions and 1 deletions

View file

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

View file

@ -6,6 +6,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20230107 bkw: BUILD=4, fix doinst.sh.
# 20211017 bkw: BUILD=3, mo' better icons.
# 20211011 bkw: BUILD=2, new-style icon
@ -13,7 +14,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=yar
VERSION=${VERSION:-0.99}
BUILD=${BUILD:-3}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}