summaryrefslogtreecommitdiff
path: root/libraries/qwt
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@slackbuilds.org>2011-04-01 21:07:26 -0300
committerRobby Workman <rworkman@slackbuilds.org>2011-04-03 09:34:39 -0500
commit8b08876fa5755037a86e05763fc92931511b12c5 (patch)
treec4efa5a69d43aa1b53fe60dee3f1851d8c609a18 /libraries/qwt
parenteab312d080c545c408a2299e4a8b892ed837bf72 (diff)
downloadslackbuilds-8b08876fa5755037a86e05763fc92931511b12c5.tar.gz
libraries/qwt: Fixed ARCH routine.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'libraries/qwt')
-rw-r--r--libraries/qwt/qwt.SlackBuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/libraries/qwt/qwt.SlackBuild b/libraries/qwt/qwt.SlackBuild
index 1afca22b29..d8572b5ac9 100644
--- a/libraries/qwt/qwt.SlackBuild
+++ b/libraries/qwt/qwt.SlackBuild
@@ -9,10 +9,17 @@
PRGNAM=qwt
VERSION=${VERSION:-5.1.1}
-ARCH=${ARCH:-i486}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
+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