From 9864a013ca05cbc6f9b7a55bb5d4ac1ab9c174df Mon Sep 17 00:00:00 2001 From: dsomero Date: Sun, 1 May 2011 10:22:41 -0400 Subject: [PATCH] libraries/live555: ARCH fixes and cleanup. Signed-off-by: dsomero --- libraries/javacomm/javacomm.SlackBuild | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libraries/javacomm/javacomm.SlackBuild b/libraries/javacomm/javacomm.SlackBuild index dd08a9ba0e..358bcfc9ca 100644 --- a/libraries/javacomm/javacomm.SlackBuild +++ b/libraries/javacomm/javacomm.SlackBuild @@ -6,11 +6,19 @@ PRGNAM=javacomm VERSION=2.0 -SRCVER=20-x86 -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +SRCVER=20-x86 + +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