diff options
author | Dugan Chen <thedoogster@gmail.com> | 2011-12-23 08:52:17 -0200 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-12-23 08:52:17 -0200 |
commit | a1693217832af8eab4495abae75588e59c103f77 (patch) | |
tree | 016e400e580e50d8445c7088c33a7e83a5c4f08f /games/yamagi-quake2/yamagi-quake2.SlackBuild | |
parent | e0fd0cfc2bec7270f6684253f314a0a5a5d04b6c (diff) |
games/yamagi-quake2: Updated for version 4.00.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'games/yamagi-quake2/yamagi-quake2.SlackBuild')
-rw-r--r-- | games/yamagi-quake2/yamagi-quake2.SlackBuild | 40 |
1 files changed, 32 insertions, 8 deletions
diff --git a/games/yamagi-quake2/yamagi-quake2.SlackBuild b/games/yamagi-quake2/yamagi-quake2.SlackBuild index 70f180873d2f5..e5549195c2cc8 100644 --- a/games/yamagi-quake2/yamagi-quake2.SlackBuild +++ b/games/yamagi-quake2/yamagi-quake2.SlackBuild @@ -7,10 +7,11 @@ # Includes components from the Arch Linux AUR builds. PRGNAM=yamagi-quake2 -VERSION=${VERSION:-3.00} +VERSION=${VERSION:-4.00} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +CTFVER=${CTFVER:-1.00} XATRIXVER=${XATRIXVER:-1.06} ROGUEVER=${ROGUEVER:-1.04} @@ -43,13 +44,13 @@ fi set -e -rm -rf $PKG $TMP/{quake2-$VERSION,quake2-xatrix-$XATRIXVER,quake2-rogue-$ROGUEVER} +rm -rf $PKG $TMP/{quake2-$VERSION,ctf-$CTFVER,quake2-xatrix-$XATRIXVER,quake2-rogue-$ROGUEVER} mkdir -p $TMP $PKG $OUTPUT # Quake 2 cd $TMP -tar xvf $CWD/quake2-$VERSION.tar.bz2 +tar xvf $CWD/quake2-$VERSION.tar.xz cd quake2-$VERSION chown -R root:root . @@ -63,10 +64,29 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ make -mkdir -p $PKG/usr/{bin,share/quake2/{xatrix,rogue}} +mkdir -p $PKG/usr/{bin,share/quake2/{ctf,xatrix,rogue}} cp -r release/* $PKG/usr/share/quake2 install -D -m 755 $CWD/quake2.sh $PKG/usr/bin/quake2 +# CTF Support + +cd $TMP +tar xvf $CWD/quake2-ctf-$CTFVER.tar.xz +cd ctf-$CTFVER + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ + make +cp -r release/* $PKG/usr/share/quake2/ctf +install -D -m 755 $CWD/ctf.sh $PKG/usr/bin/ctf + # Mission Pack 1 support cd $TMP @@ -110,20 +130,24 @@ find $PKG/usr/share/quake2 -print0 | xargs -0 file | grep -e "executable" -e "sh # Documentation -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/{quake2-xatrix-$XATRIXVER,quake2-rogue-$ROGUEVER} +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/{ctf-$CTFVER,quake2-xatrix-$XATRIXVER,quake2-rogue-$ROGUEVER} cd $TMP cp -a \ - quake2-$VERSION/README \ + quake2-$VERSION/{CHANGELOG,LICENSE,README} \ $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - quake2-xatrix-$XATRIXVER/README \ + ctf-$CTFVER/{LICENSE,README} \ + $PKG/usr/doc/$PRGNAM-$VERSION/ctf-$CTFVER + +cp -a \ + quake2-xatrix-$XATRIXVER/{LICENSE,README} \ $PKG/usr/doc/$PRGNAM-$VERSION/quake2-xatrix-$XATRIXVER cp -a \ - quake2-rogue-$ROGUEVER/README \ + quake2-rogue-$ROGUEVER/{LICENSE,README} \ $PKG/usr/doc/$PRGNAM-$VERSION/quake2-rogue-$ROGUEVER cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |