summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:09:46 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:09:46 -0400
commitfb9d7dc448712bbe9bc08aeabd7fd2ee47767984 (patch)
tree0adb2cafd051c72101907a043e82cd9a8880d82b /libraries
parentba174c82a3ab11f41d9be434dc3e72b87de62170 (diff)
downloadslackbuilds-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.SlackBuild11
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