summaryrefslogtreecommitdiff
path: root/games/nexuiz/nexuiz.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/nexuiz/nexuiz.SlackBuild')
-rw-r--r--games/nexuiz/nexuiz.SlackBuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/games/nexuiz/nexuiz.SlackBuild b/games/nexuiz/nexuiz.SlackBuild
index 8f7192de8d..e0ee9bae72 100644
--- a/games/nexuiz/nexuiz.SlackBuild
+++ b/games/nexuiz/nexuiz.SlackBuild
@@ -27,10 +27,19 @@
PRGNAM=nexuiz
VERSION=${VERSION:-2.5.2}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCVER=$( echo $VERSION | tr -d . )
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -52,8 +61,6 @@ fi
set -e
-SRCVER=$( echo $VERSION | tr -d . )
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP