diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:06:18 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:06:18 -0400 |
commit | 0ba1e6da59c324fa46cc9c67bb9fdc28b9c3ccbe (patch) | |
tree | 5d29c5c6c2b85ffed13e4457948f16ace8bd5e06 | |
parent | 2df53d9d70ed84b2a1a5aec4fca6ec3af13987f9 (diff) |
libraries/cracklib: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
-rw-r--r-- | libraries/cracklib/cracklib.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libraries/cracklib/cracklib.SlackBuild b/libraries/cracklib/cracklib.SlackBuild index a29ba3f9b986..9c8a0df5cff0 100644 --- a/libraries/cracklib/cracklib.SlackBuild +++ b/libraries/cracklib/cracklib.SlackBuild @@ -5,12 +5,21 @@ PRGNAM=cracklib VERSION=${VERSION:-2.8.13} -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} DICT=${DICT:-cracklib-words-20080507} +# 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 @@ -25,6 +34,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |