diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:14:05 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:14:05 -0400 |
commit | 1ff8f62d44734d24d168166c8956a7f8c916ae17 (patch) | |
tree | f45b771a0b12cd1fbba52e4b340078e5e74cee51 | |
parent | 2fed194e17463f380761da5e20d4bdc3308d1fb7 (diff) | |
download | slackbuilds-1ff8f62d44734d24d168166c8956a7f8c916ae17.tar.gz |
network/qwit: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
-rw-r--r-- | network/qwit/qwit.SlackBuild | 11 |
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 |