aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Collver <bencollver@riseup.net>2024-02-04 17:44:00 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-02-10 16:17:19 +0700
commit7d06039ed8d09c346cb4eb90454bee4c7fae1c3f (patch)
tree623e78bbe2a3b6bedc0827043e0e8379da303166
parente0f71f708fba0fd1c5d48ef564e6dde8f246a6b1 (diff)
games/angband: Build tweaks.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-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 2337a5a0b4c6..3eeb14f3756c 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 846e7f00cbf2..1601a24c8bbe 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*