aboutsummaryrefslogtreecommitdiff
path: root/games/openarena/openarena.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/openarena/openarena.SlackBuild')
-rw-r--r--games/openarena/openarena.SlackBuild43
1 files changed, 25 insertions, 18 deletions
diff --git a/games/openarena/openarena.SlackBuild b/games/openarena/openarena.SlackBuild
index 62e8dcc3e7de..fbcb35f28e26 100644
--- a/games/openarena/openarena.SlackBuild
+++ b/games/openarena/openarena.SlackBuild
@@ -5,8 +5,8 @@
# Written by Chess Griffin <chess@chessgriffin.com>
PRGNAM=openarena
-VERSION=${VERSION:-0.7.0}
-FINAL_VERSION=${FINAL_VERSION:-0.7.1}
+VERSION=${VERSION:-0.8.1}
+FINAL_VERSION=${FINAL_VERSION:-0.8.1} # Keep this for future patches
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -16,30 +16,35 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="CHANGES COPYING CREDITS LINUXNOTES README $CWD/$PRGNAM.SlackBuild"
+DOCS="CHANGES COPYING CREDITS LINUXNOTES README WENEED \
+$CWD/$PRGNAM.SlackBuild"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e # Exit on most errors
-if test ! -f "oa071-patch.zip";
- then echo "You need the oa71-patch.zip file in order to proceed. \
-Please download it from: \
-http://oxygen4.free.fr/dl/oa071-patch.zip and then re-run \
-this SlackBuild."
- exit 1
-fi
+# Keep the following for future patches. Based on past history, this
+# is inevitable.
+#if test ! -f "oa077-patch.zip"; then
+# echo "You need the oa77-patch.zip file in order to proceed."
+# echo "Please visit the OpenArena homepage and download the"
+# echo "patch file before continuing."
+# exit 1
+#fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-unzip -o $CWD/oa070.zip
-unzip -o $CWD/oa071-patch.zip
+unzip -o $CWD/oa081.zip
+# Keep the following for any future patches
+#unzip -o $CWD/oa077-patch.zip
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -65,13 +70,14 @@ mkdir -p $PKG/usr/share/pixmaps
cp $CWD/*.png $PKG/usr/share/pixmaps
mkdir -p $PKG/usr/doc/$PRGNAM-$FINAL_VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$FINAL_VERSION
+cp $DOCS $PKG/usr/doc/$PRGNAM-$FINAL_VERSION
find $PKG/usr/doc/$PRGNAM-$FINAL_VERSION -type f -exec chmod 0644 {} \;
mkdir -p $PKG/usr/share/games/openarena/baseoa
cp -a baseoa/* $PKG/usr/share/games/openarena/baseoa
find $PKG/usr/share/games/openarena/baseoa -type f -exec chmod 0644 {} \;
-cp -a ioq* lib* openarena* $PKG/usr/share/games/openarena
+cp oa_ded{.i386,.x86_64} openarena{.i386,.x86_64} \
+$PKG/usr/share/games/openarena
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
@@ -80,10 +86,11 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
chmod 755 $PKG/usr/share/games/openarena/*
mkdir -p $PKG/usr/games
-cd $PKG/usr/games
- ln -sf /usr/share/games/openarena/ioquake3.i386 openarena
- ln -sf /usr/share/games/openarena/ioq3ded.i386 openarena-server
-cd -
+# For x86_64: edit the two included launchers listed below to point to
+# the 64 bit binaries in /usr/share/games/openarena instead of i386.
+cp $CWD/openarena.launcher $PKG/usr/games/openarena
+cp $CWD/oa_ded.launcher $PKG/usr/games/openarena-server
+chmod 755 $PKG/usr/games/openarena*
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$FINAL_VERSION-$ARCH-$BUILD$TAG.tgz