summaryrefslogtreecommitdiffstats
path: root/libraries/atlas
diff options
context:
space:
mode:
author dsomero2011-05-01 16:22:12 +0200
committer Robby Workman2011-05-03 16:08:23 +0200
commit449d0b7fdea9ffd760796a8f1dcc7ff3ea958893 (patch)
treed3d0d6ed63fd9b46e7f0261375d4956a73077b67 /libraries/atlas
parent92f17c73c2a83bd2e89191c2d667e6567df29591 (diff)
downloadslackbuilds-449d0b7fdea9ffd760796a8f1dcc7ff3ea958893.tar.gz
libraries/atlas: ARCH fixes and cleanup.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/atlas')
-rw-r--r--libraries/atlas/atlas.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/libraries/atlas/atlas.SlackBuild b/libraries/atlas/atlas.SlackBuild
index 595b20b2b6..2e597e3728 100644
--- a/libraries/atlas/atlas.SlackBuild
+++ b/libraries/atlas/atlas.SlackBuild
@@ -25,10 +25,17 @@
PRGNAM=atlas
VERSION=${VERSION:-3.8.3}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
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