diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:37 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:37 -0400 |
commit | c152f20d2f37850cec66c0667419a3bd5d2151ac (patch) | |
tree | 7895d92cf0f46eff8e810d83d7bbc493fa87b554 /libraries | |
parent | e8c8b2c850b1667854b0a07b48985736fb793c84 (diff) | |
download | slackbuilds-c152f20d2f37850cec66c0667419a3bd5d2151ac.tar.gz |
libraries/perl-Tie-IxHash: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/perl-Tie-IxHash/perl-Tie-IxHash.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/perl-Tie-IxHash/perl-Tie-IxHash.SlackBuild b/libraries/perl-Tie-IxHash/perl-Tie-IxHash.SlackBuild index 70021ba56a..58e97d7a52 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 |