diff options
author | dsomero <xgizzmo@gmail.com> | 2010-05-27 05:03:24 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-27 12:10:05 +0200 |
commit | 28e060948ce89367f9349409bf83c1f05078a6d3 (patch) | |
tree | 7e4c24dbc32dec16d800d6c3febaaa9e81a25539 /network | |
parent | 172d87527a9a6763a39c7f47379474620027fc78 (diff) | |
download | slackbuilds-28e060948ce89367f9349409bf83c1f05078a6d3.tar.gz |
network/noip2: Cleaned up Build.
Diffstat (limited to 'network')
-rw-r--r-- | network/noip2/noip2.SlackBuild | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/network/noip2/noip2.SlackBuild b/network/noip2/noip2.SlackBuild index 4de936d8dc..6088add985 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} |