diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 00:59:28 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 00:59:28 -0400 |
commit | 081ff45900542479389f4887344a27845e2aa613 (patch) | |
tree | b547eb77045cb3ec4cc048f6f0e281501d763b2a /academic/words | |
parent | 6571d20a2c54127a5449d96ab253697044e772e3 (diff) |
academic/words: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'academic/words')
-rw-r--r-- | academic/words/words.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/academic/words/words.SlackBuild b/academic/words/words.SlackBuild index 34efb5d8a60d..a9a197d21c52 100644 --- a/academic/words/words.SlackBuild +++ b/academic/words/words.SlackBuild @@ -33,10 +33,19 @@ PRGNAM=words VERSION=${VERSION:-1.97FC} -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 @@ -51,6 +60,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e # Exit on most errors |