diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:22 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:22 -0400 |
commit | 94a62b5a3035421496a776bc3ed1cb13ec92c253 (patch) | |
tree | 8a46c0116c1d853c0957a84009bbe8698deb0d26 /libraries/perl-Convert-TNEF | |
parent | d8531b88c96ccb4cab16f847d55309c6d0fc840b (diff) | |
download | slackbuilds-94a62b5a3035421496a776bc3ed1cb13ec92c253.tar.gz |
libraries/perl-Convert-TNEF: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/perl-Convert-TNEF')
-rw-r--r-- | libraries/perl-Convert-TNEF/perl-Convert-TNEF.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libraries/perl-Convert-TNEF/perl-Convert-TNEF.SlackBuild b/libraries/perl-Convert-TNEF/perl-Convert-TNEF.SlackBuild index aecfd3642e..db63c50f66 100644 --- a/libraries/perl-Convert-TNEF/perl-Convert-TNEF.SlackBuild +++ b/libraries/perl-Convert-TNEF/perl-Convert-TNEF.SlackBuild @@ -29,10 +29,19 @@ SRCNAM=Convert-TNEF PRGNAM=perl-Convert-TNEF VERSION=0.17 -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 |