aboutsummaryrefslogtreecommitdiff
path: root/network/noip2
diff options
context:
space:
mode:
Diffstat (limited to 'network/noip2')
-rw-r--r--network/noip2/noip2.SlackBuild16
1 files changed, 13 insertions, 3 deletions
diff --git a/network/noip2/noip2.SlackBuild b/network/noip2/noip2.SlackBuild
index 4de936d8dce69..6088add98575e 100644
--- a/network/noip2/noip2.SlackBuild
+++ b/network/noip2/noip2.SlackBuild
@@ -27,10 +27,20 @@
PRGNAM=noip2
SRCNAM=noip
VERSION=2.1.9
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
-TAG=${TAG=_SBO}
-CWD=`pwd`
+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
OUTPUT=${OUTPUT:-/tmp}