From 5cb75b5d504b551a3e016eb5bb82e483507aca36 Mon Sep 17 00:00:00 2001 From: David Somero Date: Fri, 4 Jun 2010 01:09:51 -0400 Subject: libraries/perl-xml-libxml-common: Misc automated cleanups. Signed-off-by: David Somero --- .../perl-xml-libxml-common/perl-xml-libxml-common.SlackBuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'libraries') diff --git a/libraries/perl-xml-libxml-common/perl-xml-libxml-common.SlackBuild b/libraries/perl-xml-libxml-common/perl-xml-libxml-common.SlackBuild index c837f6243e..3ce1db559d 100644 --- a/libraries/perl-xml-libxml-common/perl-xml-libxml-common.SlackBuild +++ b/libraries/perl-xml-libxml-common/perl-xml-libxml-common.SlackBuild @@ -8,10 +8,19 @@ PRGNAM=perl-xml-libxml-common SRCNAM=XML-LibXML-Common VERSION=0.13 -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 -- cgit v1.2.3