aboutsummaryrefslogtreecommitdiff
path: root/libraries/javacomm/javacomm.SlackBuild
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2011-05-01 10:22:41 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-05-03 09:08:23 -0500
commit9864a013ca05cbc6f9b7a55bb5d4ac1ab9c174df (patch)
tree1aaa20c74386c69fa6fd3c27c9377626d803c661 /libraries/javacomm/javacomm.SlackBuild
parent449d0b7fdea9ffd760796a8f1dcc7ff3ea958893 (diff)
libraries/live555: ARCH fixes and cleanup.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/javacomm/javacomm.SlackBuild')
-rw-r--r--libraries/javacomm/javacomm.SlackBuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/libraries/javacomm/javacomm.SlackBuild b/libraries/javacomm/javacomm.SlackBuild
index dd08a9ba0e71a..358bcfc9ca604 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