summaryrefslogtreecommitdiffstats
path: root/games/angband/angband.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/angband/angband.SlackBuild')
-rw-r--r--games/angband/angband.SlackBuild34
1 files changed, 12 insertions, 22 deletions
diff --git a/games/angband/angband.SlackBuild b/games/angband/angband.SlackBuild
index 0887524053..1601a24c8b 100644
--- a/games/angband/angband.SlackBuild
+++ b/games/angband/angband.SlackBuild
@@ -2,26 +2,9 @@
# Slackware build script for Angband
-# Copyright 2020 Marshall Scott, SlackBuilds.org Project, David Melik, Spokane,
-# WA, USA.
-# All rights reserved.
-#
-# Redistribution and use of this script, with or without modification, is
-# permitted provided that the following conditions are met:
-#
-# 1. Redistributions of this script must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Written by Marshall Scott, David Melik, and Ben Collver.
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20220219 bkw: Modified by SlackBuilds.org:
# - update download URL to one that exists.
@@ -29,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.4}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-4.2.5}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -97,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 {} \+
@@ -112,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*