summaryrefslogtreecommitdiffstats
path: root/games/hack-of-life
diff options
context:
space:
mode:
author B. Watson2023-01-07 09:15:48 +0100
committer Willy Sudiarto Raharjo2023-01-14 02:50:17 +0100
commitebcb23319101b82c30199094d9f8595868f1dd73 (patch)
tree7fb13316561993f703d6bb58ac3ab582bcc9e99c /games/hack-of-life
parentaea6096ecff37a83920871ce5ab91776887cad23 (diff)
downloadslackbuilds-ebcb23319101b82c30199094d9f8595868f1dd73.tar.gz
games/hack-of-life: Add doinst.sh.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/hack-of-life')
-rw-r--r--games/hack-of-life/doinst.sh9
-rw-r--r--games/hack-of-life/hack-of-life.SlackBuild4
2 files changed, 12 insertions, 1 deletions
diff --git a/games/hack-of-life/doinst.sh b/games/hack-of-life/doinst.sh
new file mode 100644
index 0000000000..3e5691a052
--- /dev/null
+++ b/games/hack-of-life/doinst.sh
@@ -0,0 +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
diff --git a/games/hack-of-life/hack-of-life.SlackBuild b/games/hack-of-life/hack-of-life.SlackBuild
index 48305a683b..b92dbde447 100644
--- a/games/hack-of-life/hack-of-life.SlackBuild
+++ b/games/hack-of-life/hack-of-life.SlackBuild
@@ -12,13 +12,14 @@
# standard in the roguelike world... It's not configurable in this
# game, meaning I'm never going to enjoy playing it very much :(
+# 20230107 bkw: BUILD=3, add doinst.sh.
# 20211102 bkw: BUILD=2, icon and .desktop.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=hack-of-life
VERSION=${VERSION:-20130628_3a6c824}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -108,6 +109,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE