diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:48 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:48 -0400 |
commit | e2a10e2eb708051a1503c58c8f43c46dc61e8c89 (patch) | |
tree | 85c60a5611ef85bfe3da6256314a78a7fda86a15 /libraries | |
parent | 86be224f74743bcd1f41f96bd50742274ae484c2 (diff) | |
download | slackbuilds-e2a10e2eb708051a1503c58c8f43c46dc61e8c89.tar.gz |
libraries/perl-net-dns: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/perl-net-dns/perl-net-dns.SlackBuild | 11 |
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 7a73120bff..8ecc7e504b 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 |