diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:07:59 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:07:59 -0400 |
commit | bd6f214b0ad8afaf39e74dc4c09320427c45c766 (patch) | |
tree | b769323348449ab2cf0eae242f3d901ebbbd046c /libraries | |
parent | 1f6133b9d687f25c03d86bb7cb2815d8888a2b68 (diff) | |
download | slackbuilds-bd6f214b0ad8afaf39e74dc4c09320427c45c766.tar.gz |
libraries/libgnomecups: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/libgnomecups/libgnomecups.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libraries/libgnomecups/libgnomecups.SlackBuild b/libraries/libgnomecups/libgnomecups.SlackBuild index e4f3781773..9a4e2ae32a 100644 --- a/libraries/libgnomecups/libgnomecups.SlackBuild +++ b/libraries/libgnomecups/libgnomecups.SlackBuild @@ -26,10 +26,19 @@ PRGNAM=libgnomecups VERSION=0.2.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 @@ -44,6 +53,9 @@ elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi rm -rf $PKG |