aboutsummaryrefslogtreecommitdiff
path: root/libraries/perl-net-dns
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:09:48 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:09:48 -0400
commite2a10e2eb708051a1503c58c8f43c46dc61e8c89 (patch)
tree85c60a5611ef85bfe3da6256314a78a7fda86a15 /libraries/perl-net-dns
parent86be224f74743bcd1f41f96bd50742274ae484c2 (diff)
libraries/perl-net-dns: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/perl-net-dns')
-rw-r--r--libraries/perl-net-dns/perl-net-dns.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/perl-net-dns/perl-net-dns.SlackBuild b/libraries/perl-net-dns/perl-net-dns.SlackBuild
index 7a73120bff04..8ecc7e504b0b 100644
--- a/libraries/perl-net-dns/perl-net-dns.SlackBuild
+++ b/libraries/perl-net-dns/perl-net-dns.SlackBuild
@@ -24,10 +24,19 @@
PRGNAM=perl-net-dns
VERSION=${VERSION:-0.66}
-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