diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-19 10:07:58 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-20 15:12:42 +0700 |
commit | 50fc7753a4ac7c9da58bf8d89b909d05395a2fbd (patch) | |
tree | 412cdbedde4f7fbc069da28f92d0f008c93cbcc7 /games | |
parent | c9bebcd39e02b16cf8f968dd107080515b7f00e2 (diff) |
games/OpenJK: Fix 15.0 build.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/OpenJK/OpenJK.SlackBuild | 14 | ||||
-rw-r--r-- | games/OpenJK/OpenJK.info | 2 |
2 files changed, 6 insertions, 10 deletions
diff --git a/games/OpenJK/OpenJK.SlackBuild b/games/OpenJK/OpenJK.SlackBuild index d02fdf034b6d..9c70755b5db0 100644 --- a/games/OpenJK/OpenJK.SlackBuild +++ b/games/OpenJK/OpenJK.SlackBuild @@ -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 diff --git a/games/OpenJK/OpenJK.info b/games/OpenJK/OpenJK.info index 87e5099891c0..b384a2844ca9 100644 --- a/games/OpenJK/OpenJK.info +++ b/games/OpenJK/OpenJK.info @@ -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="" |