Browse Source

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 <lin.ruohshoei+sbo@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/333/head
Ruoh-Shoei LIN 4 weeks ago
committed by Willy Sudiarto Raharjo
parent
commit
bf6bb1de90
No known key found for this signature in database GPG Key ID: 3F617144D7238786
  1. 16
      games/yamagi-quake2/README
  2. 2
      games/yamagi-quake2/ctf.sh
  3. 12
      games/yamagi-quake2/doinst.sh
  4. 4
      games/yamagi-quake2/quake2.desktop
  5. 2
      games/yamagi-quake2/quake2.sh
  6. 2
      games/yamagi-quake2/rogue.sh
  7. 12
      games/yamagi-quake2/slack-desc
  8. 2
      games/yamagi-quake2/xatrix.sh
  9. 86
      games/yamagi-quake2/yamagi-quake2.SlackBuild
  10. 14
      games/yamagi-quake2/yamagi-quake2.info

16
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.

2
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 $*

12
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

4
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

2
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 $*

2
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 $*

12
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:

2
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 $*

86
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 \

14
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=""

Loading…
Cancel
Save