aboutsummaryrefslogtreecommitdiff
path: root/games/ioquake3/ioquake3.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/ioquake3/ioquake3.SlackBuild')
-rw-r--r--games/ioquake3/ioquake3.SlackBuild32
1 files changed, 13 insertions, 19 deletions
diff --git a/games/ioquake3/ioquake3.SlackBuild b/games/ioquake3/ioquake3.SlackBuild
index 843784f78446..5c35ece70b45 100644
--- a/games/ioquake3/ioquake3.SlackBuild
+++ b/games/ioquake3/ioquake3.SlackBuild
@@ -23,22 +23,16 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ioquake3
-VERSION=${VERSION:-r20200211}
+VERSION=${VERSION:-1.36_05180e3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Setting the arch here overrides the Makefiles
-# arch setting which causes the build to fail
-# on 32bit machines, so we change this to BARCH
-# here and let the Makefile set the ARCH.
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) export BARCH=i586 ;;
- arm*) export BARCH=arm ;;
- *) export BARCH=$( uname -m ) ;;
+ i?86) export ARCH=i586 ;;
+ arm*) export ARCH=arm ;;
+ *) export ARCH=$( uname -m ) ;;
esac
-else
- BARCH="$ARCH"
fi
CWD=$(pwd)
@@ -46,22 +40,22 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$BARCH" = "i586" ]; then
+if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
- ARCH="x86"
-elif [ "$BARCH" = "i686" ]; then
+ BARCH="x86"
+elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
- ARCH="x86"
-elif [ "$BARCH" = "x86_64" ]; then
+ BARCH="x86"
+elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
- ARCH="x86_64"
+ BARCH="x86_64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
- ARCH="$BARCH"
+ BARCH="$ARCH"
fi
set -e
@@ -82,7 +76,7 @@ find -L . \
make \
release \
copyfiles \
- ARCH="$ARCH" \
+ ARCH="$BARCH" \
COPYDIR="$PKG"/usr/share/games/quake3 \
CFLAGS="$SLKCFLAGS" \
USE_CODEC_VORBIS=1 \
@@ -130,4 +124,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$BARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}