diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:12:40 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:12:40 -0400 |
commit | 2e082663f160737ea5833b2999b0e7b1475d1b30 (patch) | |
tree | 7a81eb67cafc2abc2807716eb25fe7d617776b07 | |
parent | a7d3f3788b00d3d86f8cbba0018ae17fa4f370a7 (diff) | |
download | slackbuilds-2e082663f160737ea5833b2999b0e7b1475d1b30.tar.gz |
network/elinks: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
-rw-r--r-- | network/elinks/elinks.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/network/elinks/elinks.SlackBuild b/network/elinks/elinks.SlackBuild index 323c5448f7..9d45ccff78 100644 --- a/network/elinks/elinks.SlackBuild +++ b/network/elinks/elinks.SlackBuild @@ -9,10 +9,19 @@ PRGNAM=elinks VERSION=0.11.5 -ARCH=${ARCH:-i486} BUILD=${BUILD:-2} 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 @@ -27,6 +36,9 @@ elif [ "$ARCH" = "i486" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi rm -rf $PKG |