diff options
author | dsomero <xgizzmo@slackbuilds.org> | 2011-05-01 10:20:46 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-05-03 09:08:23 -0500 |
commit | 68cab5f37c21b7edbadd8e73f589a5459eb757f7 (patch) | |
tree | 2185ee40b65cb7ed65e5d346d02355d7a134b99d /games/nexuiz | |
parent | 106daf7eeb839f3613c5d49b9f331a22372adc6c (diff) |
games/nexuiz: ARCH fixes and cleanup.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games/nexuiz')
-rw-r--r-- | games/nexuiz/nexuiz.SlackBuild | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/games/nexuiz/nexuiz.SlackBuild b/games/nexuiz/nexuiz.SlackBuild index 8f7192de8df2..e0ee9bae7203 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 |