summaryrefslogtreecommitdiff
path: root/development/numpy/numpy.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-23 03:18:29 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-23 23:21:45 -0500
commit9831742bc30bb614e2f29508afd027632a077607 (patch)
treec10c74d14034521832d97a426d6c422ec3938709 /development/numpy/numpy.SlackBuild
parent91f0e267baa88ddde7313f0f84a82c71b886ddea (diff)
downloadslackbuilds-9831742bc30bb614e2f29508afd027632a077607.tar.gz
development/numpy: Updated for version 1.4.1.
Diffstat (limited to 'development/numpy/numpy.SlackBuild')
-rw-r--r--development/numpy/numpy.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/development/numpy/numpy.SlackBuild b/development/numpy/numpy.SlackBuild
index ff32dbbba1..f058ac4dd5 100644
--- a/development/numpy/numpy.SlackBuild
+++ b/development/numpy/numpy.SlackBuild
@@ -5,11 +5,20 @@
# Written by Aleksandar Samardzic <asamardzic@gmail.com>
PRGNAM=numpy
-VERSION=${VERSION:-1.3.0}
-ARCH=${ARCH:-i486}
+VERSION=${VERSION:-1.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=${PKG:-$TMP/package-$PRGNAM}
@@ -30,7 +39,6 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-python setup.py build
python setup.py install --root $PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \