summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
author Ben Collver2024-02-04 09:44:00 +0100
committer Willy Sudiarto Raharjo2024-02-10 10:17:19 +0100
commit7d06039ed8d09c346cb4eb90454bee4c7fae1c3f (patch)
tree623e78bbe2a3b6bedc0827043e0e8379da303166 /games
parente0f71f708fba0fd1c5d48ef564e6dde8f246a6b1 (diff)
downloadslackbuilds-7d06039ed8d09c346cb4eb90454bee4c7fae1c3f.tar.gz
games/angband: Build tweaks.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/angband/README4
-rw-r--r--games/angband/angband.SlackBuild9
2 files changed, 12 insertions, 1 deletions
diff --git a/games/angband/README b/games/angband/README
index 2337a5a0b4..3eeb14f375 100644
--- a/games/angband/README
+++ b/games/angband/README
@@ -11,3 +11,7 @@ Edit /etc/profile.d/lang.sh or export $LANG, or run such as (for USA):
LANG=en_US.UTF-8 angband.
Run the graphics/tiles version by: angband -msdl2
+
+To restore old class definitions, backup class.txt and replace it
+with the contents of the old_class.txt file. Note that this will
+break existing save files.
diff --git a/games/angband/angband.SlackBuild b/games/angband/angband.SlackBuild
index 846e7f00cb..1601a24c8b 100644
--- a/games/angband/angband.SlackBuild
+++ b/games/angband/angband.SlackBuild
@@ -12,11 +12,16 @@
# - use full path to icon in .desktop (since it's not in /usr/share/icons).
# - remove an empty file from the doc dir.
+# 20240203
+# - install old_class.txt
+# See also:
+# https://angband.live/forums/forum/angband/vanilla/248199-can-t-get-most-spells-as-ranger
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=angband
VERSION=${VERSION:-4.2.5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -80,6 +85,7 @@ CFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
strip $PKG/usr/games/$PRGNAM
+cp lib/gamedata/old_class.txt $PKG/etc/angband/gamedata/
find $PKG -name "delete.me" -exec rm -f {} \+
@@ -95,6 +101,7 @@ cp $CWD/angband.desktop $PKG/usr/share/applications
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a changes.txt README.md docs/ lib/help/ \
$PKG/usr/doc/$PRGNAM-$VERSION
+cp $CWD/README $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \+
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
rm -f $PKG/usr/doc/$PRGNAM-$VERSION/{doc,help}/.dep*