summaryrefslogtreecommitdiff
path: root/games/alienarena
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2010-12-30 10:03:20 -0200
committerRobby Workman <rworkman@slackbuilds.org>2010-12-31 18:59:54 -0600
commit674c7cf983a2996f47fb21ead24bc69cd37ec372 (patch)
tree140562a2829ce8a2853988cd7515257d52a5a7e4 /games/alienarena
parent7a462a7aaaefcccfd291b897042102b5d11ccd8c (diff)
downloadslackbuilds-674c7cf983a2996f47fb21ead24bc69cd37ec372.tar.gz
games/alienarena: Updated for version 7.50.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'games/alienarena')
-rw-r--r--games/alienarena/README26
-rw-r--r--games/alienarena/alienarena.SlackBuild59
-rw-r--r--games/alienarena/alienarena.info8
3 files changed, 42 insertions, 51 deletions
diff --git a/games/alienarena/README b/games/alienarena/README
index eb59649c56..9b00433154 100644
--- a/games/alienarena/README
+++ b/games/alienarena/README
@@ -1,16 +1,14 @@
The goal of Alien Arena was to create the perfect marriage between Quake
-and Unreal Tournament, between retro sci-fi and futuristic tech, and between
-casual gamer and advanced expert, and wrap it up in a package with quality
-that could rival that of commercial games. The game has a weapon set that
-is unique and fun, and deviates a bit away from the standard Q3 or UT2k4
-weapons. Gameplay can be altered easily in the menu by choosing between the
-various game types, such as Deathmatch, Team Core Assault, All Out Assault,
-Capture the Flag, Duel, and Cattle Prod. Users can also apply a number of
-different mutators to the game rules as well, creating some pretty interesting
-scenarios. Players can join others on servers using the in-game browser, or
-use the Galaxy client, which also serves as a way to communicate with the
-large, and friendly Alien Arena community.
+and Unreal Tournament, between retro sci-fi and futuristic tech, and
+between casual gamer and advanced expert, and wrap it up in a package with
+quality that could rival that of commercial games. The game has a weapon
+set that is unique and fun, and deviates a bit away from the standard Q3
+or UT2k4 weapons. Gameplay can be altered easily in the menu by choosing
+between the various game types, such as Deathmatch, Team Core Assault,
+All Out Assault, Capture the Flag, Duel, and Cattle Prod. Users can also
+apply a number of different mutators to the game rules as well, creating
+some pretty interesting scenarios. Players can join others on servers
+using the in-game browser, or use the Galaxy client, which also serves as
+a way to communicate with the large, and friendly Alien Arena community.
-Alienarena requires OpenAL.
-
-Note: This slackbuild only builds the client.
+Alienarena requires OpenAL and ode.
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
diff --git a/games/alienarena/alienarena.info b/games/alienarena/alienarena.info
index 9b284f7b68..feb26e2b27 100644
--- a/games/alienarena/alienarena.info
+++ b/games/alienarena/alienarena.info
@@ -1,10 +1,10 @@
PRGNAM="alienarena"
-VERSION="7.45"
+VERSION="7.50"
HOMEPAGE="http://icculus.org/alienarena/rpa/"
-DOWNLOAD="http://icculus.org/alienarena/Files/alienarena7_45-Linux20100726.zip"
-MD5SUM="7a02717b308f737b320586d3f1ea39e8"
+DOWNLOAD="http://icculus.org/alienarena/Files/alienarena-7_50-linux20101214.tar.gz"
+MD5SUM="40e44cb49f5bc6ff6c8abcead897b29a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com"
-APPROVED="dsomero"
+APPROVED="dsomero,Niels Horn"