aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-07-04 21:53:38 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-08 16:42:07 +0700
commita80d3fbf5ffebff27a54983504fe9ba6e202b7c5 (patch)
treee51c8cbd7be9933e8de9a7ef0a5fdb7d405c36bd /games
parentc886a2eac3ace1141f607b5dc06e95b097dd8179 (diff)
games/heroes: Handle /usr/info files.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/heroes/douninst.sh6
-rw-r--r--games/heroes/heroes.SlackBuild7
2 files changed, 12 insertions, 1 deletions
diff --git a/games/heroes/douninst.sh b/games/heroes/douninst.sh
new file mode 100644
index 000000000000..1bef5020286e
--- /dev/null
+++ b/games/heroes/douninst.sh
@@ -0,0 +1,6 @@
+if [ -x /usr/bin/install-info -a -d usr/info ]; then
+ ( cd usr/info
+ rm -f dir
+ for i in *.info*; do /usr/bin/install-info $i dir 2>/dev/null; done
+ )
+fi
diff --git a/games/heroes/heroes.SlackBuild b/games/heroes/heroes.SlackBuild
index 139ea5329e8e..78e26319ce4e 100644
--- a/games/heroes/heroes.SlackBuild
+++ b/games/heroes/heroes.SlackBuild
@@ -11,11 +11,14 @@
# All-in-one build. No way am I having 5 builds for the data, sfx, etc
# source packages.
+# 20230704 bkw: BUILD=2
+# - add doinst/douninst to handle .info files.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=heroes
VERSION=${VERSION:-0.21}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -151,6 +154,8 @@ cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/douninst.sh >> $PKG/install/doinst.sh
+cat $CWD/douninst.sh > $PKG/install/douninst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE