summaryrefslogtreecommitdiff
path: root/libraries/pgtcl-ng
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:09:55 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:09:55 -0400
commit1aa0036a4f7480472a78e7686cb900a34b1be3d6 (patch)
tree9e6d869c87fad9bdf21a900a650091b0bc7ad446 /libraries/pgtcl-ng
parentadda3729353eaaa4b3255ba1e1fa5d1fdbeada1a (diff)
downloadslackbuilds-1aa0036a4f7480472a78e7686cb900a34b1be3d6.tar.gz
libraries/pgtcl-ng: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/pgtcl-ng')
-rw-r--r--libraries/pgtcl-ng/pgtcl-ng.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/libraries/pgtcl-ng/pgtcl-ng.SlackBuild b/libraries/pgtcl-ng/pgtcl-ng.SlackBuild
index b3eb827d6c..31eb80222e 100644
--- a/libraries/pgtcl-ng/pgtcl-ng.SlackBuild
+++ b/libraries/pgtcl-ng/pgtcl-ng.SlackBuild
@@ -8,10 +8,19 @@
PRGNAM=pgtcl-ng
VERSION=${VERSION:-1.6.2}
-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
@@ -26,6 +35,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e