diff options
author | B. Watson <urchlay@slackware.uk> | 2023-01-07 03:15:48 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-01-14 08:50:17 +0700 |
commit | ebcb23319101b82c30199094d9f8595868f1dd73 (patch) | |
tree | 7fb13316561993f703d6bb58ac3ab582bcc9e99c /games/hack-of-life | |
parent | aea6096ecff37a83920871ce5ab91776887cad23 (diff) |
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.sh | 9 | ||||
-rw-r--r-- | games/hack-of-life/hack-of-life.SlackBuild | 4 |
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 0000000000000..3e5691a052b5b --- /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 48305a683b8bd..b92dbde447509 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 |