diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:46 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:46 -0400 |
commit | fb9d7dc448712bbe9bc08aeabd7fd2ee47767984 (patch) | |
tree | 0adb2cafd051c72101907a043e82cd9a8880d82b /libraries | |
parent | ba174c82a3ab11f41d9be434dc3e72b87de62170 (diff) | |
download | slackbuilds-fb9d7dc448712bbe9bc08aeabd7fd2ee47767984.tar.gz |
libraries/perl-html-tagset: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/perl-html-tagset/perl-html-tagset.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/perl-html-tagset/perl-html-tagset.SlackBuild b/libraries/perl-html-tagset/perl-html-tagset.SlackBuild index a3da79b51a..bb22e9e41e 100644 --- a/libraries/perl-html-tagset/perl-html-tagset.SlackBuild +++ b/libraries/perl-html-tagset/perl-html-tagset.SlackBuild @@ -26,10 +26,19 @@ PRGNAM=perl-html-tagset SRC_PRGNAM=HTML-Tagset VERSION=${VERSION:-3.20} -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 |