summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:14:05 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:14:05 -0400
commit1ff8f62d44734d24d168166c8956a7f8c916ae17 (patch)
treef45b771a0b12cd1fbba52e4b340078e5e74cee51 /network
parent2fed194e17463f380761da5e20d4bdc3308d1fb7 (diff)
downloadslackbuilds-1ff8f62d44734d24d168166c8956a7f8c916ae17.tar.gz
network/qwit: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/qwit/qwit.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/network/qwit/qwit.SlackBuild b/network/qwit/qwit.SlackBuild
index aebf9bf1d0..ee434fbc53 100644
--- a/network/qwit/qwit.SlackBuild
+++ b/network/qwit/qwit.SlackBuild
@@ -6,10 +6,19 @@
PRGNAM=qwit
VERSION=${VERSION:-0.10}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM