summaryrefslogtreecommitdiffstats
path: root/games/hack-of-life
diff options
context:
space:
mode:
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