diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:36 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:09:36 -0400 |
commit | e3ba98ba3136e4724d2057f29eeeb2017e4c3f64 (patch) | |
tree | 67304de38f20a4d8aecd738b6c01c6a7e446dac7 /libraries/perl-Text-Autoformat | |
parent | 49c8df5462a9bd7788683f2c48d6e399ed88f3ec (diff) |
libraries/perl-Text-Autoformat: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/perl-Text-Autoformat')
-rw-r--r-- | libraries/perl-Text-Autoformat/perl-Text-Autoformat.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libraries/perl-Text-Autoformat/perl-Text-Autoformat.SlackBuild b/libraries/perl-Text-Autoformat/perl-Text-Autoformat.SlackBuild index 3c9e5e3896a9..4fdf1a028fc7 100644 --- a/libraries/perl-Text-Autoformat/perl-Text-Autoformat.SlackBuild +++ b/libraries/perl-Text-Autoformat/perl-Text-Autoformat.SlackBuild @@ -6,10 +6,19 @@ PRGNAM=perl-Text-Autoformat SRCNAM=Text-Autoformat VERSION=${VERSION:-1.668001} -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 @@ -24,6 +33,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |