From 68cab5f37c21b7edbadd8e73f589a5459eb757f7 Mon Sep 17 00:00:00 2001 From: dsomero Date: Sun, 1 May 2011 10:20:46 -0400 Subject: games/nexuiz: ARCH fixes and cleanup. Signed-off-by: dsomero --- games/nexuiz/nexuiz.SlackBuild | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'games/nexuiz') 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 -- cgit v1.2.3