aboutsummaryrefslogtreecommitdiff
path: root/network/dovecot-cmusieve
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:12:37 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:12:37 -0400
commitca269be1d4f0f359133aa7bc43d097652dcb128a (patch)
treecdfced4ff30f3aae66070892478ce8ba6b1f9e7d /network/dovecot-cmusieve
parent3e40c4f3ea825d2d52928a9eda6ddc5df9ed473e (diff)
network/dovecot-cmusieve: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/dovecot-cmusieve')
-rw-r--r--network/dovecot-cmusieve/dovecot-cmusieve.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/network/dovecot-cmusieve/dovecot-cmusieve.SlackBuild b/network/dovecot-cmusieve/dovecot-cmusieve.SlackBuild
index f7cbacd06377..b78deca88c99 100644
--- a/network/dovecot-cmusieve/dovecot-cmusieve.SlackBuild
+++ b/network/dovecot-cmusieve/dovecot-cmusieve.SlackBuild
@@ -27,10 +27,19 @@
SRCNAM=dovecot-sieve
PRGNAM=dovecot-cmusieve
VERSION=1.1.8
-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
@@ -45,6 +54,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e