summaryrefslogtreecommitdiff
path: root/system/redis
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:16:38 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:16:38 -0400
commit38ca7e25d78acde3ec3d8decfbe7b946afa656d3 (patch)
treed15a44807deb7eb091d5ffd4ab92d2b6244ef004 /system/redis
parenta7e3c9beae0d3155b358107822de8fae3e2e5785 (diff)
downloadslackbuilds-38ca7e25d78acde3ec3d8decfbe7b946afa656d3.tar.gz
system/redis: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/redis')
-rw-r--r--system/redis/redis.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/system/redis/redis.SlackBuild b/system/redis/redis.SlackBuild
index 6c152b34c9..37d217d28a 100644
--- a/system/redis/redis.SlackBuild
+++ b/system/redis/redis.SlackBuild
@@ -5,10 +5,19 @@
PRGNAM=redis
VERSION=${VERSION:-1.02}
-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
@@ -23,6 +32,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e