Browse Source

games/srb2: Updated for version 2.2.15.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/377/head
B. Watson 7 months ago
committed by Willy Sudiarto Raharjo
parent
commit
dea7fceafa
No known key found for this signature in database GPG Key ID: 3F617144D7238786
  1. 6
      games/srb2/README
  2. 15
      games/srb2/srb2.SlackBuild
  3. 10
      games/srb2/srb2.info

6
games/srb2/README

@ -7,12 +7,6 @@ attempts to recreate the design in 3D. While SRB2 isn't fully completed,
it already features tons of levels, enemies, speed, and quite a lot of
the fun that the original Sonic games provided.
libgme is an optional dependency for srb2. It will be autodetected if
installed. I'm not 100% sure what libgme does for srb2: it's a "game
music emulation" library, but the game music doesn't sound different to
me when srb2 is built with libgme, and I don't see any config settings
to enable it. I haven't played the entire game yet though...
Note for users upgrading from version 2.1.x to 2.2.x: I had to
delete my old config (rm -rf ~/.srb2) to get the game to run without
segfaulting.

15
games/srb2/srb2.SlackBuild

@ -6,6 +6,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20260111 bkw: updated for v2.2.15.
# 20240907 bkw: updated for v2.2.13.
# 20230714 bkw: updated for v2.2.11.
# - new deps (see .info file).
@ -15,7 +16,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=srb2
VERSION=${VERSION:-2.2.13}
VERSION=${VERSION:-2.2.15}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -71,8 +72,9 @@ tar xvf $CWD/SRB2-SRB2_release_$VERSION.tar.gz \
cd SRB2-SRB2_release_$VERSION
chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
find . ! -type l -a \
\( -perm /111 -a ! -perm 755 -a -exec chmod -f 755 {} + \) -o \
\( ! -perm /111 -a ! -perm 644 -a -exec chmod -f 644 {} + \)
# Assets (actually WAD and pk3 aka zip files) aren't found in the
# source, have to download them separately. The build actually checks
@ -88,7 +90,7 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
# 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'
unzip "$ZIPFILE" '*.dta' '*.pk3' || true
)
# As shipped, the path /usr/games/SRB2 is hardcoded in various places
@ -162,9 +164,10 @@ cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
# dev and modding docs in doc/, config files for cwiid and various doom
# level editors in extras/. We don't need yet another copy of the GPL
# in doc/, so:
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
rm -f doc/.gitignore doc/copying
cp -a doc extras $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cp -a doc extras $PKGDOC
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

10
games/srb2/srb2.info

@ -1,10 +1,10 @@
PRGNAM="srb2"
VERSION="2.2.13"
VERSION="2.2.15"
HOMEPAGE="https://www.srb2.org/"
DOWNLOAD="https://github.com/STJr/SRB2/archive/SRB2_release_2.2.13/SRB2-SRB2_release_2.2.13.tar.gz \
https://github.com/STJr/SRB2/releases/download/SRB2_release_2.2.13/SRB2-v2213-Full.zip"
MD5SUM="0af8d9629a8d14b2638db0e2caede142 \
61521518534a1c4ee37e2985817bc37b"
DOWNLOAD="https://github.com/STJr/SRB2/archive/SRB2_release_2.2.15/SRB2-SRB2_release_2.2.15.tar.gz \
https://github.com/STJr/SRB2/releases/download/SRB2_release_2.2.15/SRB2-v2215-Full.zip"
MD5SUM="d3358f3fdd7391d25ce0b0ace82be369 \
8466a7b5d9aabffdd63bd03cfb459096"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libgme libopenmpt"

Loading…
Cancel
Save