summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:09:27 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:09:27 -0400
commit5a56eda0031054f187486ca8c245d7b2847ef700 (patch)
tree9cab26d5ae17a66f7a38396573760debf61689e2 /libraries
parent8f9d20ea0b9c42a5672d83d2173c7acb6c504070 (diff)
downloadslackbuilds-5a56eda0031054f187486ca8c245d7b2847ef700.tar.gz
libraries/perl-ExtUtils-XSBuilder: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/perl-ExtUtils-XSBuilder/perl-ExtUtils-XSBuilder.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/perl-ExtUtils-XSBuilder/perl-ExtUtils-XSBuilder.SlackBuild b/libraries/perl-ExtUtils-XSBuilder/perl-ExtUtils-XSBuilder.SlackBuild
index d6041862ca..70c6090d56 100644
--- a/libraries/perl-ExtUtils-XSBuilder/perl-ExtUtils-XSBuilder.SlackBuild
+++ b/libraries/perl-ExtUtils-XSBuilder/perl-ExtUtils-XSBuilder.SlackBuild
@@ -24,12 +24,21 @@
PRGNAM=perl-ExtUtils-XSBuilder
VERSION=${VERSION:-0.28}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRC_PRGNAM=ExtUtils-XSBuilder
+# 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