summaryrefslogtreecommitdiff
path: root/development/dart
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2017-05-17 19:16:15 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2017-05-18 20:46:18 +0100
commit08e5ec3b69bdef150d452ace9f43b89085dfe25f (patch)
tree41ff5b00434dfa26feebc980548df2e7926404aa /development/dart
parentc7f6e9f540db1b9f88e2c12ef2cf4244f2d1ca2c (diff)
downloadslackbuilds-08e5ec3b69bdef150d452ace9f43b89085dfe25f.tar.gz
development/dart: Fixed arch handling.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/dart')
-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