From 27f68e1684022dd5f3cf1e713198225edf4d4326 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Sat, 17 Dec 2011 22:14:47 -0600 Subject: libraries/xerces-c: Fixed (well, "added" actually) ARCH detection Signed-off-by: Robby Workman --- libraries/xerces-c/xerces-c.SlackBuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libraries/xerces-c/xerces-c.SlackBuild b/libraries/xerces-c/xerces-c.SlackBuild index 422d63ab36..be03bff879 100644 --- a/libraries/xerces-c/xerces-c.SlackBuild +++ b/libraries/xerces-c/xerces-c.SlackBuild @@ -24,10 +24,17 @@ PRGNAM=xerces-c VERSION=2.8.0 -ARCH=${ARCH:-i486} BUILD=${BUILD:-3} TAG=${TAG:-_SBo} +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM -- cgit v1.2.3