diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:16:07 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:16:07 -0400 |
commit | a492290e42b14bdf28ae591d4acf2ce2e7a8c95b (patch) | |
tree | b5ce7986b464d9782dc34464952d7caf22cb6a8c /system/md5deep/md5deep.SlackBuild | |
parent | 29f5f95a33d2d0d8c7589da264a09e38a55a7f39 (diff) | |
download | slackbuilds-a492290e42b14bdf28ae591d4acf2ce2e7a8c95b.tar.gz |
system/md5deep: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/md5deep/md5deep.SlackBuild')
-rw-r--r-- | system/md5deep/md5deep.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/system/md5deep/md5deep.SlackBuild b/system/md5deep/md5deep.SlackBuild index b6a887859e..b34a07886c 100644 --- a/system/md5deep/md5deep.SlackBuild +++ b/system/md5deep/md5deep.SlackBuild @@ -24,10 +24,19 @@ PRGNAM=md5deep VERSION=3.5.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 @@ -42,6 +51,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -eu |