summaryrefslogtreecommitdiff
path: root/libraries/perl-Net-Telnet
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:09:32 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:09:32 -0400
commit00863c5d791db55eeb1fad2fb23dd7a4437503ff (patch)
tree81c7ab13d39a508d4fc5891368c50813da556b1b /libraries/perl-Net-Telnet
parent8da835756377a8bd3754c7b5b3ba811ef450581d (diff)
downloadslackbuilds-00863c5d791db55eeb1fad2fb23dd7a4437503ff.tar.gz
libraries/perl-Net-Telnet: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/perl-Net-Telnet')
-rw-r--r--libraries/perl-Net-Telnet/perl-Net-Telnet.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/libraries/perl-Net-Telnet/perl-Net-Telnet.SlackBuild b/libraries/perl-Net-Telnet/perl-Net-Telnet.SlackBuild
index 50edffc81f..c7d7024f54 100644
--- a/libraries/perl-Net-Telnet/perl-Net-Telnet.SlackBuild
+++ b/libraries/perl-Net-Telnet/perl-Net-Telnet.SlackBuild
@@ -24,13 +24,22 @@
PRGNAM=perl-Net-Telnet
VERSION=${VERSION:-3.03}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRC_PRGNAM=Net-Telnet
DOCS="ChangeLog README"
+# 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
@@ -45,6 +54,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e