summaryrefslogtreecommitdiff
path: root/libraries/perl-IO-stringy
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:09:29 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:09:29 -0400
commit5df2ef208624562fa6dc4025e1d0a9dfc6e97b9c (patch)
treed9aea471f2e3afdbba0bb1b976dbb6b085cdf48f /libraries/perl-IO-stringy
parentc73145f7ab1c49a081368e853d4b0854d4df8bb2 (diff)
downloadslackbuilds-5df2ef208624562fa6dc4025e1d0a9dfc6e97b9c.tar.gz
libraries/perl-IO-stringy: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/perl-IO-stringy')
-rw-r--r--libraries/perl-IO-stringy/perl-IO-stringy.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/libraries/perl-IO-stringy/perl-IO-stringy.SlackBuild b/libraries/perl-IO-stringy/perl-IO-stringy.SlackBuild
index 15dcc0fdbe..19596b8e6d 100644
--- a/libraries/perl-IO-stringy/perl-IO-stringy.SlackBuild
+++ b/libraries/perl-IO-stringy/perl-IO-stringy.SlackBuild
@@ -29,10 +29,19 @@
SRCNAM=IO-stringy
PRGNAM=perl-IO-stringy
VERSION=2.110
-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