diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 00:59:23 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 00:59:23 -0400 |
commit | 5fd56aa7ecb7e6091ca799bfcceea6a80dc42c85 (patch) | |
tree | b499e95aafd3ef78fa0ee3f1f2c239cbd447b980 /academic/speedcrunch | |
parent | ecfd8baae12156fe7b47c01a8c105cb2fb19a78f (diff) |
academic/speedcrunch: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'academic/speedcrunch')
-rw-r--r-- | academic/speedcrunch/speedcrunch.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/academic/speedcrunch/speedcrunch.SlackBuild b/academic/speedcrunch/speedcrunch.SlackBuild index 9e7366166a36..4426ce60e4e1 100644 --- a/academic/speedcrunch/speedcrunch.SlackBuild +++ b/academic/speedcrunch/speedcrunch.SlackBuild @@ -6,10 +6,19 @@ PRGNAM=speedcrunch VERSION=${VERSION:-0.10.1} -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 @@ -24,6 +33,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |