aboutsummaryrefslogtreecommitdiff
path: root/libraries/perl-file-path-expand
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:09:44 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:09:44 -0400
commit65dde408528cdb378af8e1861ce97d5c90bcc3bf (patch)
treedbca5fedca305f9282976f981d2a5e7880129c87 /libraries/perl-file-path-expand
parent240449844f8f0242eeefa2461056d5265ec4699c (diff)
libraries/perl-file-path-expand: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/perl-file-path-expand')
-rw-r--r--libraries/perl-file-path-expand/perl-file-path-expand.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/libraries/perl-file-path-expand/perl-file-path-expand.SlackBuild b/libraries/perl-file-path-expand/perl-file-path-expand.SlackBuild
index 301e1ab73194..03975196b559 100644
--- a/libraries/perl-file-path-expand/perl-file-path-expand.SlackBuild
+++ b/libraries/perl-file-path-expand/perl-file-path-expand.SlackBuild
@@ -7,10 +7,19 @@
PRGNAM=perl-file-path-expand
SRCNAM=File-Path-Expand
VERSION=${VERSION:-1.02}
-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
@@ -25,6 +34,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e