aboutsummaryrefslogtreecommitdiff
path: root/system/md5deep
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:16:07 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:16:07 -0400
commita492290e42b14bdf28ae591d4acf2ce2e7a8c95b (patch)
treeb5ce7986b464d9782dc34464952d7caf22cb6a8c /system/md5deep
parent29f5f95a33d2d0d8c7589da264a09e38a55a7f39 (diff)
system/md5deep: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/md5deep')
-rw-r--r--system/md5deep/md5deep.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/system/md5deep/md5deep.SlackBuild b/system/md5deep/md5deep.SlackBuild
index b6a887859ed4..b34a07886c8f 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