summaryrefslogtreecommitdiffstats
path: root/games/srb2/srb2.SlackBuild
diff options
context:
space:
mode:
author B. Watson2021-11-09 20:28:52 +0100
committer Willy Sudiarto Raharjo2021-12-04 04:08:55 +0100
commit2ed9033c395bf849c262074ff6f337a788e7df5b (patch)
tree7a08fbc102ca8ae7b122e1c1c8b7bb7c70e07610 /games/srb2/srb2.SlackBuild
parenta1f71ad04906171ed5148b9fddd7b622f79eb096 (diff)
downloadslackbuilds-2ed9033c395bf849c262074ff6f337a788e7df5b.tar.gz
games/srb2: Updated for version 2.2.9.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/srb2/srb2.SlackBuild')
-rw-r--r--games/srb2/srb2.SlackBuild11
1 files changed, 6 insertions, 5 deletions
diff --git a/games/srb2/srb2.SlackBuild b/games/srb2/srb2.SlackBuild
index fd71b32e67..38efd929ee 100644
--- a/games/srb2/srb2.SlackBuild
+++ b/games/srb2/srb2.SlackBuild
@@ -9,7 +9,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=srb2
-VERSION=${VERSION:-2.2.8}
+VERSION=${VERSION:-2.2.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +22,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -81,7 +78,11 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
( cd assets
mkdir installer
cd installer
- unzip $CWD/SRB2-v$VERSION-Full.zip '*.dta' '*.pk3'
+
+ # upstream release a 2.2.8 followed by a 229, handle either.
+ ZIPFILE="$CWD/SRB2-v$VERSION-Full.zip"
+ [ -e "$ZIPFILE" ] || ZIPFILE="$CWD/SRB2-v${VERSION//.}-Full.zip"
+ unzip "$ZIPFILE" '*.dta' '*.pk3'
)
# As shipped, the path /usr/games/SRB2 is hardcoded in various places