diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:51 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:51 -0400 |
commit | 5cb75b5d504b551a3e016eb5bb82e483507aca36 (patch) | |
tree | 35908d27596ae058c2f1e8962efc7e37d17cbbfb /libraries/perl-xml-libxml-common | |
parent | 072976d19ed8699b153fb43daef609975bbfe786 (diff) |
libraries/perl-xml-libxml-common: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/perl-xml-libxml-common')
-rw-r--r-- | libraries/perl-xml-libxml-common/perl-xml-libxml-common.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
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 c837f6243e63b..3ce1db559df74 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 |