diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2010-12-30 10:03:20 -0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-12-31 18:59:54 -0600 |
commit | 674c7cf983a2996f47fb21ead24bc69cd37ec372 (patch) | |
tree | 140562a2829ce8a2853988cd7515257d52a5a7e4 /games/alienarena/alienarena.SlackBuild | |
parent | 7a462a7aaaefcccfd291b897042102b5d11ccd8c (diff) | |
download | slackbuilds-674c7cf983a2996f47fb21ead24bc69cd37ec372.tar.gz |
games/alienarena: Updated for version 7.50.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'games/alienarena/alienarena.SlackBuild')
-rw-r--r-- | games/alienarena/alienarena.SlackBuild | 59 |
1 files changed, 26 insertions, 33 deletions
diff --git a/games/alienarena/alienarena.SlackBuild b/games/alienarena/alienarena.SlackBuild index 814230ea80..2a9db23fd0 100644 --- a/games/alienarena/alienarena.SlackBuild +++ b/games/alienarena/alienarena.SlackBuild @@ -3,7 +3,7 @@ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> PRGNAM=alienarena -VERSION=${VERSION:-7.45} +VERSION=${VERSION:-7.50} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -39,9 +39,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf ${PRGNAM}${VERSION/./_} -unzip $CWD/${PRGNAM}${VERSION/./_}-Linux20100726.zip -cd ${PRGNAM}${VERSION/./_} +rm -rf $PRGNAM-$VERSION +tar -xvf $CWD/$PRGNAM-${VERSION/./_}-linux20101214.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -49,36 +49,26 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Remove precompiled libs and executables. -rm -f */*.so crded crx +find ./Tools/LinuxScripts/ -type f -exec sed -i "s|crx|$PRGNAM|g" {} \; +sed -i "s|\.codered|\.$PRGNAM|g" source/qcommon/qcommon.h -cd source +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --disable-silent-rules \ + --disable-dependency-tracking \ + --with-x \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux -# Fix home directory from codered to alienarena. -sed -i "s|\.codered|\.${PRGNAM}|" qcommon/files.c +make +make install DESTDIR=$PKG -make \ - PREFIX=/usr \ - CFLAGS="$SLKCFLAGS" \ - ARCH="unknown" \ - OSTYPE="linux" \ - OPTIMIZED_CFLAGS=no \ - WITH_DATADIR=yes \ - WITH_LIBDIR=yes \ - BUILD=CLIENT \ - DATADIR=/usr/share/$PRGNAM \ - LIBDIR=/usr/lib${LIBDIRSUFFIX}/$PRGNAM \ - build-release - -install -D -m 0755 release/game.so $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/arena/game.so -install -D -m 0755 release/crx $PKG/usr/games/$PRGNAM - -cd .. - -find arena botinfo data1 -type f | while read filename -do - install -D -m 0644 "$filename" "$PKG/usr/share/$PRGNAM/$filename" -done +# Rename executables. +mv $PKG/usr/bin/crx $PKG/usr/bin/$PRGNAM +mv $PKG/usr/bin/crx-ded $PKG/usr/bin/$PRGNAM-ded find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -87,9 +77,12 @@ mkdir -p $PKG/usr/share/{applications,pixmaps} install -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications install -m 0644 aa.png $PKG/usr/share/pixmaps/$PRGNAM.png -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a docs/{license.txt,README.txt} $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/scripts +cp -a \ + ChangeLog COPYING README docs/{license.txt,README.txt} \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +install -m 0644 Tools/LinuxScripts/* $PKG/usr/doc/$PRGNAM-$VERSION/scripts mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |