diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:06:44 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:06:44 -0400 |
commit | 4b564f9e430aaf38b44f97da78d9b45b3ae0b48b (patch) | |
tree | 552c95f1f5e27d482867ddd4608d0e41eb3ac5a0 /libraries/gnome-python | |
parent | 538fbdc0ff573dd1d0418026a21e462471382b2a (diff) | |
download | slackbuilds-4b564f9e430aaf38b44f97da78d9b45b3ae0b48b.tar.gz |
libraries/gnome-python: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/gnome-python')
-rw-r--r-- | libraries/gnome-python/gnome-python.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libraries/gnome-python/gnome-python.SlackBuild b/libraries/gnome-python/gnome-python.SlackBuild index 47a8fd9e97..2b2aaf0036 100644 --- a/libraries/gnome-python/gnome-python.SlackBuild +++ b/libraries/gnome-python/gnome-python.SlackBuild @@ -24,10 +24,19 @@ PRGNAM=gnome-python VERSION=2.22.3 -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 @@ -42,6 +51,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -eu |