aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:05:53 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:05:53 -0400
commit794135b330704f56cfb8a9c0f13da3589e6f18f3 (patch)
tree7afac89c5a7bbb99a0d385119cd0a3c503ff2bd9 /libraries
parent8e25d6dcffaec5c55e25dfe8b53931a9024331d2 (diff)
libraries/Net-SSLeay: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/Net-SSLeay/Net-SSLeay.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/Net-SSLeay/Net-SSLeay.SlackBuild b/libraries/Net-SSLeay/Net-SSLeay.SlackBuild
index ab38adb3ece5c..81c210fa789fd 100644
--- a/libraries/Net-SSLeay/Net-SSLeay.SlackBuild
+++ b/libraries/Net-SSLeay/Net-SSLeay.SlackBuild
@@ -24,10 +24,19 @@
PRGNAM=Net-SSLeay
VERSION=1.35
-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