diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:02:22 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:02:22 -0400 |
commit | 3d0aee0b5165124d11d9216fddb4e8dbfde34a45 (patch) | |
tree | 7cbc455a438491d2635ce804b9a99835b7a5df1d /development/MySQL-python/MySQL-python.SlackBuild | |
parent | 5f16ce65c90b25fc74ef2f13401872d1306d8ff6 (diff) |
development/MySQL-python: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/MySQL-python/MySQL-python.SlackBuild')
-rw-r--r-- | development/MySQL-python/MySQL-python.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/development/MySQL-python/MySQL-python.SlackBuild b/development/MySQL-python/MySQL-python.SlackBuild index 93568ad95e724..190207434b0c5 100644 --- a/development/MySQL-python/MySQL-python.SlackBuild +++ b/development/MySQL-python/MySQL-python.SlackBuild @@ -6,10 +6,19 @@ PRGNAM=MySQL-python VERSION=1.2.3c1 -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 |