games/OpenJK: Fix 15.0 build.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-02-19 10:07:58 -05:00 committed by Willy Sudiarto Raharjo
parent c9bebcd39e
commit 50fc7753a4
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 6 additions and 10 deletions

View file

@ -38,9 +38,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
@ -75,9 +72,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
-o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
# According to the official website,
# support for Jedi Outcast is rudimentary
@ -90,6 +87,8 @@ if [ "$BUILDJO" = "yes" ]; then
JOARGS="-DBuildJK2SPEngine=On -DBuildJK2SPGame=On -DBuildJK2SPRdVanilla=On"
fi
SLKCFLAGS+=" -fcommon"
mkdir -p build
cd build
cmake \
@ -99,12 +98,9 @@ cd build
$JOARGS \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
make install/strip DESTDIR=$PKG
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/share/pixmaps
cp $CWD/OpenJK-academy.png $PKG/usr/share/pixmaps/OpenJK-academy.png
if [ "$BUILDJO" = "yes" ]; then

View file

@ -1,7 +1,7 @@
PRGNAM="OpenJK"
VERSION="7613c1"
HOMEPAGE="https://github.com/JACoders/OpenJK"
DOWNLOAD="http://schmatzler.de/my_slackbuilds/OpenJK/OpenJK-7613c1.tar.bz2"
DOWNLOAD="https://slackware.uk/~urchlay/src/OpenJK-7613c1.tar.bz2"
MD5SUM="b5d27a41af26b097964565669c1dd7c0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""