summaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
Diffstat (limited to 'development')
-rw-r--r--development/dart/dart.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/development/dart/dart.SlackBuild b/development/dart/dart.SlackBuild
index 3fa3128e98..bcae5f217e 100644
--- a/development/dart/dart.SlackBuild
+++ b/development/dart/dart.SlackBuild
@@ -44,13 +44,16 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" == "x86_64" ]; then
- PKG_PLATFORM="x64"
-elif [ "$ARCH" == "i586" ]; then
- PKG_PLATFORM="ia32"
- DARTIUM_VERSION=1.22.0
-elif [ "$ARCH" == "arm" ]; then
- PKG_PLATFORM="arm"
+if [ "$ARCH" = "x86_64" ]; then
+ PKG_PLATFORM="x64"
+elif [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
+ PKG_PLATFORM="ia32"
+ DARTIUM_VERSION=1.22.0
+elif [ "$ARCH" = "arm" ]; then
+ PKG_PLATFORM="arm"
+else
+ echo "$ARCH is not supported." >&2
+ exit 1
fi
set -e