diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:44 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:44 -0400 |
commit | 65dde408528cdb378af8e1861ce97d5c90bcc3bf (patch) | |
tree | dbca5fedca305f9282976f981d2a5e7880129c87 /libraries | |
parent | 240449844f8f0242eeefa2461056d5265ec4699c (diff) | |
download | slackbuilds-65dde408528cdb378af8e1861ce97d5c90bcc3bf.tar.gz |
libraries/perl-file-path-expand: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/perl-file-path-expand/perl-file-path-expand.SlackBuild | 14 |
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 301e1ab731..03975196b5 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 |