games/angband: Build tweaks.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Ben Collver 2024-02-04 17:44:00 +09:00 committed by Willy Sudiarto Raharjo
parent e0f71f708f
commit 7d06039ed8
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 12 additions and 1 deletions

View file

@ -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.

View file

@ -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*