diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2011-12-17 22:14:47 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-12-17 22:14:47 -0600 |
commit | 27f68e1684022dd5f3cf1e713198225edf4d4326 (patch) | |
tree | da04d8b6691fc6de4c86fb00358f16b96ab744ad /libraries/xerces-c | |
parent | 140fa35076f6274b38119441d4083f875c70a5a4 (diff) |
libraries/xerces-c: Fixed (well, "added" actually) ARCH detection
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/xerces-c')
-rw-r--r-- | libraries/xerces-c/xerces-c.SlackBuild | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libraries/xerces-c/xerces-c.SlackBuild b/libraries/xerces-c/xerces-c.SlackBuild index 422d63ab3622..be03bff879b7 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 |