From c152f20d2f37850cec66c0667419a3bd5d2151ac Mon Sep 17 00:00:00 2001 From: David Somero Date: Fri, 4 Jun 2010 01:09:37 -0400 Subject: libraries/perl-Tie-IxHash: Misc automated cleanups. Signed-off-by: David Somero --- libraries/perl-Tie-IxHash/perl-Tie-IxHash.SlackBuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libraries/perl-Tie-IxHash/perl-Tie-IxHash.SlackBuild b/libraries/perl-Tie-IxHash/perl-Tie-IxHash.SlackBuild index 70021ba56ae90..58e97d7a52eb4 100644 --- a/libraries/perl-Tie-IxHash/perl-Tie-IxHash.SlackBuild +++ b/libraries/perl-Tie-IxHash/perl-Tie-IxHash.SlackBuild @@ -24,12 +24,21 @@ PRGNAM=perl-Tie-IxHash VERSION=${VERSION:-1.22} -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} SRC_PRGNAM=Tie-IxHash +# 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 -- cgit v1.2.3