diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:21 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:21 -0400 |
commit | d8531b88c96ccb4cab16f847d55309c6d0fc840b (patch) | |
tree | 9a6d53f8d7831918d182ff067e31e2f33d4a2d86 /libraries/perl-Convert-BinHex | |
parent | 18e720a833a4a031a1ec7c1756146e11e8185374 (diff) | |
download | slackbuilds-d8531b88c96ccb4cab16f847d55309c6d0fc840b.tar.gz |
libraries/perl-Convert-BinHex: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/perl-Convert-BinHex')
-rw-r--r-- | libraries/perl-Convert-BinHex/perl-Convert-BinHex.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libraries/perl-Convert-BinHex/perl-Convert-BinHex.SlackBuild b/libraries/perl-Convert-BinHex/perl-Convert-BinHex.SlackBuild index 8d92dab1c6..c86ba1ed59 100644 --- a/libraries/perl-Convert-BinHex/perl-Convert-BinHex.SlackBuild +++ b/libraries/perl-Convert-BinHex/perl-Convert-BinHex.SlackBuild @@ -29,10 +29,19 @@ SRCNAM=Convert-BinHex PRGNAM=perl-Convert-BinHex VERSION=1.119 -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 @@ -51,6 +60,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi rm -fr $TMP/$SRCNAM-$VERSION $PKG |