aboutsummaryrefslogtreecommitdiff
path: root/libraries/libgnomecups/libgnomecups.SlackBuild
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:07:59 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:07:59 -0400
commitbd6f214b0ad8afaf39e74dc4c09320427c45c766 (patch)
treeb769323348449ab2cf0eae242f3d901ebbbd046c /libraries/libgnomecups/libgnomecups.SlackBuild
parent1f6133b9d687f25c03d86bb7cb2815d8888a2b68 (diff)
libraries/libgnomecups: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/libgnomecups/libgnomecups.SlackBuild')
-rw-r--r--libraries/libgnomecups/libgnomecups.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/libraries/libgnomecups/libgnomecups.SlackBuild b/libraries/libgnomecups/libgnomecups.SlackBuild
index e4f378177301..9a4e2ae32a87 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