summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2011-12-17 22:14:47 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-12-17 22:14:47 -0600
commit27f68e1684022dd5f3cf1e713198225edf4d4326 (patch)
treeda04d8b6691fc6de4c86fb00358f16b96ab744ad /libraries
parent140fa35076f6274b38119441d4083f875c70a5a4 (diff)
downloadslackbuilds-27f68e1684022dd5f3cf1e713198225edf4d4326.tar.gz
libraries/xerces-c: Fixed (well, "added" actually) ARCH detection
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/xerces-c/xerces-c.SlackBuild9
1 files changed, 8 insertions, 1 deletions
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