aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/zulu-openjdk6/zulu-openjdk6.SlackBuild21
1 files changed, 11 insertions, 10 deletions
diff --git a/development/zulu-openjdk6/zulu-openjdk6.SlackBuild b/development/zulu-openjdk6/zulu-openjdk6.SlackBuild
index a4c4e00f30934..d514c53f2e06a 100644
--- a/development/zulu-openjdk6/zulu-openjdk6.SlackBuild
+++ b/development/zulu-openjdk6/zulu-openjdk6.SlackBuild
@@ -31,12 +31,13 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-ARCH=${ARCH:-$(uname -m)}
-
-case "${ARCH}" in
- i?86) ARCH=i686 ;;
- x86_64) ARCH=x64 ;;
-esac
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i686 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
@@ -48,17 +49,17 @@ PKG=${TMP}/package-${PRGNAM}
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i686" ]; then
- LIB_ARCH=i686
+ ZULU_ARCH=i686
LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x64" ]; then
- LIB_ARCH=amd64
+elif [ "$ARCH" = "x86_64" ]; then
+ ZULU_ARCH=x64
LIBDIRSUFFIX="64"
else
echo "Architecture ${ARCH} is not supported."
exit 1
fi
-SRCNAM=zulu${ZULUVERSION}-jdk${VERSION}-linux_$ARCH
+SRCNAM=zulu${ZULUVERSION}-jdk${VERSION}-linux_$ZULU_ARCH
set -e