summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:09:51 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:09:51 -0400
commit5cb75b5d504b551a3e016eb5bb82e483507aca36 (patch)
tree35908d27596ae058c2f1e8962efc7e37d17cbbfb
parent072976d19ed8699b153fb43daef609975bbfe786 (diff)
downloadslackbuilds-5cb75b5d504b551a3e016eb5bb82e483507aca36.tar.gz
libraries/perl-xml-libxml-common: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
-rw-r--r--libraries/perl-xml-libxml-common/perl-xml-libxml-common.SlackBuild11
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 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