diff options
-rw-r--r-- | libraries/javacomm/javacomm.SlackBuild | 12 |
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 |