aboutsummaryrefslogtreecommitdiff
path: root/network/cadaver
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:12:26 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:12:26 -0400
commit91b250bbdf157cf89232dbe8acb164eda7ed579a (patch)
tree7a4960b6e121b909af35a2abaedb3b219858f2e5 /network/cadaver
parent14aa6dbf934347d887095aba905a69f35703c9f5 (diff)
network/cadaver: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/cadaver')
-rw-r--r--network/cadaver/cadaver.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/network/cadaver/cadaver.SlackBuild b/network/cadaver/cadaver.SlackBuild
index efdd2a5165163..900d6215b37c1 100644
--- a/network/cadaver/cadaver.SlackBuild
+++ b/network/cadaver/cadaver.SlackBuild
@@ -5,10 +5,19 @@
PRGNAM=cadaver
VERSION=0.23.3
-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
@@ -23,6 +32,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e