From 7d06039ed8d09c346cb4eb90454bee4c7fae1c3f Mon Sep 17 00:00:00 2001 From: Ben Collver Date: Sun, 4 Feb 2024 17:44:00 +0900 Subject: [PATCH] games/angband: Build tweaks. Signed-off-by: Andrew Clemons Signed-off-by: Willy Sudiarto Raharjo --- games/angband/README | 4 ++++ games/angband/angband.SlackBuild | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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*