From bf6bb1de900a4e96eb2096558ba8ea4b9be14f48 Mon Sep 17 00:00:00 2001 From: Ruoh-Shoei LIN Date: Mon, 15 Sep 2025 17:12:11 +0000 Subject: [PATCH] games/yamagi-quake2: Updated for version 8.60. - upstream release - build system: cmake -> make - default game data dir: /usr/share/quake2 -> /usr/share/games/quake2 Signed-off-by: Ruoh-Shoei LIN Signed-off-by: Willy Sudiarto Raharjo --- games/yamagi-quake2/README | 16 ++-- games/yamagi-quake2/ctf.sh | 2 +- games/yamagi-quake2/doinst.sh | 12 ++- games/yamagi-quake2/quake2.desktop | 4 +- games/yamagi-quake2/quake2.sh | 2 +- games/yamagi-quake2/rogue.sh | 2 +- games/yamagi-quake2/slack-desc | 12 +-- games/yamagi-quake2/xatrix.sh | 2 +- games/yamagi-quake2/yamagi-quake2.SlackBuild | 86 ++++++++------------ games/yamagi-quake2/yamagi-quake2.info | 14 ++-- 10 files changed, 75 insertions(+), 77 deletions(-) diff --git a/games/yamagi-quake2/README b/games/yamagi-quake2/README index 653a99f74e..1121ee9105 100644 --- a/games/yamagi-quake2/README +++ b/games/yamagi-quake2/README @@ -1,12 +1,18 @@ yamagi-quake2 (Yamagi Quake II Client) -This is an enhanced client for Id Software's legendary Quake II. It -focuses on single-player. Features include rock-solid stability and -AMD64 support. +Yamagi Quake II is an enhanced client for id Software's Quake II with +focus on offline and cooperative gameplay. + +Both the gameplay and the graphics are unchanged, but many bugs in +the last official release were fixed and some nice to have features +like widescreen support and a modern OpenGL 3.2 renderer were added. + +In comparison with the original client Yamagi Quake II is fully 64-bit +clean and works perfectly on modern processors and operating systems. Before playing, copy your Quake2 data files into the appropriate subdirectories of /usr/share/quake2 ( or "$HOME/.yq2"). Please refer -to the README files in /usr/doc/yamagi-quake2-8.20/ for details. +to the README files in /usr/doc/yamagi-quake2-8.60/ for details. To get a reasonable default configuration, copy -/usr/doc/yamagi-quake2-8.51/yq2.cfg to your baseq2 directory. +/usr/doc/yamagi-quake2-8.60/yq2.cfg to your baseq2 directory. diff --git a/games/yamagi-quake2/ctf.sh b/games/yamagi-quake2/ctf.sh index ad7d3477f8..aac6928679 100644 --- a/games/yamagi-quake2/ctf.sh +++ b/games/yamagi-quake2/ctf.sh @@ -1,2 +1,2 @@ #!/bin/sh -exec /usr/share/quake2/quake2 +set basedir /usr/share/quake2 +set game ctf $* +exec /usr/share/games/quake2/quake2 +set basedir /usr/share/games/quake2 +set game ctf $* diff --git a/games/yamagi-quake2/doinst.sh b/games/yamagi-quake2/doinst.sh index 5fb28930db..f1541e354c 100644 --- a/games/yamagi-quake2/doinst.sh +++ b/games/yamagi-quake2/doinst.sh @@ -1,3 +1,13 @@ if [ -x /usr/bin/update-desktop-database ]; then - /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi fi diff --git a/games/yamagi-quake2/quake2.desktop b/games/yamagi-quake2/quake2.desktop index f8dd179c7b..363a05dc2a 100644 --- a/games/yamagi-quake2/quake2.desktop +++ b/games/yamagi-quake2/quake2.desktop @@ -1,7 +1,7 @@ [Desktop Entry] -Name=Quake 2 +Name=Yamagi Quake II GenericName=Quake 2 Exec=quake2 Icon=Quake2 Type=Application -Categories=Game; +Categories=Game;Shooter diff --git a/games/yamagi-quake2/quake2.sh b/games/yamagi-quake2/quake2.sh index 26a335022f..f2a782ed7e 100644 --- a/games/yamagi-quake2/quake2.sh +++ b/games/yamagi-quake2/quake2.sh @@ -1,2 +1,2 @@ #!/bin/sh -exec /usr/share/quake2/quake2 +set basedir /usr/share/quake2 $* +exec /usr/share/games/quake2/quake2 +set basedir /usr/share/games/quake2 $* diff --git a/games/yamagi-quake2/rogue.sh b/games/yamagi-quake2/rogue.sh index 22fbc79b65..7c9972a33b 100644 --- a/games/yamagi-quake2/rogue.sh +++ b/games/yamagi-quake2/rogue.sh @@ -1,2 +1,2 @@ #!/bin/sh -exec /usr/share/quake2/quake2 +set basedir /usr/share/quake2 +set game rogue $* +exec /usr/share/games/quake2/quake2 +set basedir /usr/share/games/quake2 +set game rogue $* diff --git a/games/yamagi-quake2/slack-desc b/games/yamagi-quake2/slack-desc index aac13a2b9b..acb5987b30 100644 --- a/games/yamagi-quake2/slack-desc +++ b/games/yamagi-quake2/slack-desc @@ -8,12 +8,12 @@ |-----handy-ruler------------------------------------------------------| yamagi-quake2: yamagi-quake2 (Yamagi Quake II Client) yamagi-quake2: -yamagi-quake2: This is an enhanced client for Id Software's legendary Quake II. It -yamagi-quake2: focuses on single-player. Features include rock-solid stability and -yamagi-quake2: AMD64 support. -yamagi-quake2: -yamagi-quake2: http://www.yamagi.org/quake2/ -yamagi-quake2: +yamagi-quake2: Yamagi Quake II is an enhanced client for id Software's Quake II with +yamagi-quake2: focus on offline and cooperative gameplay. yamagi-quake2: +yamagi-quake2: Both the gameplay and the graphics are unchanged, but many bugs in +yamagi-quake2: the last official release were fixed and some nice to have features +yamagi-quake2: like widescreen support and a modern OpenGL 3.2 renderer were added. yamagi-quake2: +yamagi-quake2: https://www.yamagi.org/quake2/ yamagi-quake2: diff --git a/games/yamagi-quake2/xatrix.sh b/games/yamagi-quake2/xatrix.sh index 40460a0506..ae3e4336c5 100644 --- a/games/yamagi-quake2/xatrix.sh +++ b/games/yamagi-quake2/xatrix.sh @@ -1,2 +1,2 @@ #!/bin/sh -exec /usr/share/quake2/quake2 +set basedir /usr/share/quake2 +set game xatrix $* +exec /usr/share/games/quake2/quake2 +set basedir /usr/share/games/quake2 +set game xatrix $* diff --git a/games/yamagi-quake2/yamagi-quake2.SlackBuild b/games/yamagi-quake2/yamagi-quake2.SlackBuild index 224bc1bf7f..c1362b0a08 100644 --- a/games/yamagi-quake2/yamagi-quake2.SlackBuild +++ b/games/yamagi-quake2/yamagi-quake2.SlackBuild @@ -28,14 +28,14 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=yamagi-quake2 -VERSION=${VERSION:-8.51} +VERSION=${VERSION:-8.60} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} CTFVER=${CTFVER:-1.12} -XATRIXVER=${XATRIXVER:-2.15} -ROGUEVER=${ROGUEVER:-2.14} +XATRIXVER=${XATRIXVER:-2.16} +ROGUEVER=${ROGUEVER:-2.15} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -89,25 +89,21 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -mkdir -p build -cd build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release .. - make -cd .. - -mkdir -p $PKG/usr/{bin,share/quake2/{ctf,xatrix,rogue}} -install -dm755 $PKG/usr/share/quake2 -cp -a build/release/* -t $PKG/usr/share/quake2 -install -Dm644 stuff/yq2.cfg -t $PKG/usr/share/quake2/baseq2 +CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" \ + make \ + WITH_RPATH=no \ + WITH_SYSTEMWIDE=yes + +mkdir -pv $PKG/usr/{bin,share/games/quake2/{ctf,xatrix,rogue}} +install -dm755 $PKG/usr/share/games/quake2 +cp -a release/* -t $PKG/usr/share/games/quake2 +install -Dm644 stuff/yq2.cfg -t $PKG/usr/share/games/quake2/baseq2 install -Dm644 stuff/icon/Quake2.png -t $PKG/usr/share/pixmaps +install -Dm644 stuff/icon/Quake2.svg -t $PKG/usr/share/icons/hicolor/scalable/apps install -Dm755 $CWD/quake2.sh $PKG/usr/bin/quake2 install -Dm644 $CWD/quake2.desktop -t $PKG/usr/share/applications -# CTF Support +# CTF (Three Wave Capture the Flag) Support cd $TMP tar xvf $CWD/quake2-ctf-$CTFVER.tar.xz @@ -120,19 +116,15 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -mkdir -p build -cd build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release .. - make - install -Dm755 Release/game.so -t $PKG/usr/share/quake2/ctf -cd .. +CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" \ + make \ + WITH_RPATH=no \ + WITH_SYSTEMWIDE=yes + +install -Dm755 release/game.so -t $PKG/usr/share/games/quake2/ctf install -Dm755 $CWD/ctf.sh $PKG/usr/bin/quake2-ctf -# Mission Pack 1 support +# Mission Pack 1 The Reckoning support cd $TMP tar xvf $CWD/quake2-xatrix-$XATRIXVER.tar.xz @@ -145,20 +137,15 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -mkdir -p build -cd build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release .. - make - install -Dm755 Release/game.so -t $PKG/usr/share/quake2/xatrix -cd .. +CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" \ + make \ + WITH_RPATH=no \ + WITH_SYSTEMWIDE=yes +install -Dm755 release/game.so -t $PKG/usr/share/games/quake2/xatrix install -Dm755 $CWD/xatrix.sh $PKG/usr/bin/quake2-xatrix -# Mission Pack 2 support +# Mission Pack 2 Ground Zero support cd $TMP tar xvf $CWD/quake2-rogue-$ROGUEVER.tar.xz @@ -171,20 +158,15 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -mkdir -p build -cd build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release .. - make - install -Dm755 Release/game.so -t $PKG/usr/share/quake2/rogue -cd .. +CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" \ + make \ + WITH_RPATH=no \ + WITH_SYSTEMWIDE=yes +install -Dm755 release/game.so -t $PKG/usr/share/games/quake2/rogue install -Dm755 $CWD/rogue.sh $PKG/usr/bin/quake2-rogue -find $PKG/usr/share/quake2 -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ +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 # Documentation @@ -194,7 +176,7 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/{ctf-$CTFVER,quake2-xatrix-$XATRIXVER,qua cd $TMP cp -a \ - quake2-$VERSION/{CHANGELOG,LICENSE,README.md,stuff/yq2.cfg,doc/*.md} \ + quake2-$VERSION/{CHANGELOG,LICENSE,README.md,stuff/yq2.cfg,doc} \ $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ diff --git a/games/yamagi-quake2/yamagi-quake2.info b/games/yamagi-quake2/yamagi-quake2.info index 82b2c7683d..cac6a5e214 100644 --- a/games/yamagi-quake2/yamagi-quake2.info +++ b/games/yamagi-quake2/yamagi-quake2.info @@ -1,14 +1,14 @@ PRGNAM="yamagi-quake2" -VERSION="8.51" +VERSION="8.60" HOMEPAGE="https://www.yamagi.org/quake2/" -DOWNLOAD="https://deponie.yamagi.org/quake2/quake2-8.51.tar.xz \ +DOWNLOAD="https://deponie.yamagi.org/quake2/quake2-8.60.tar.xz \ https://deponie.yamagi.org/quake2/quake2-ctf-1.12.tar.xz \ - https://deponie.yamagi.org/quake2/quake2-rogue-2.14.tar.xz \ - https://deponie.yamagi.org/quake2/quake2-xatrix-2.15.tar.xz" -MD5SUM="a68a2e9dd9a2004c5d2a0f86c028a6f4 \ + https://deponie.yamagi.org/quake2/quake2-rogue-2.15.tar.xz \ + https://deponie.yamagi.org/quake2/quake2-xatrix-2.16.tar.xz" +MD5SUM="baa58a288a895fd6c0bed0aa9fc64278 \ e559f49a31dfc570f85eae6b3b327864 \ - 8527582cb95acd28adf86d4bddf91291 \ - 362a4b469f171b0a7dce666e2b1a5463" + dad359e95f9d3fb5872dd1a8fa321170 \ + f6c5e80b9e6d1ca1a04b99333aad8d9f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES=""