aboutsummaryrefslogtreecommitdiff
path: root/development/komodo-edit
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-08 07:52:34 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-08 07:52:34 +0700
commit7e6258a89fc49c898011f006d74888821edbd64c (patch)
treeed1f341cc9309dd1e048f5bd9fabf05797f01aeb /development/komodo-edit
parent706e0aa2df580d466cb02417e9c1eb3e83aa7fbf (diff)
development/komodo-edit: Fix ARCH detection.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/komodo-edit')
-rw-r--r--development/komodo-edit/komodo-edit.SlackBuild15
1 files changed, 10 insertions, 5 deletions
diff --git a/development/komodo-edit/komodo-edit.SlackBuild b/development/komodo-edit/komodo-edit.SlackBuild
index e54b2a1eb744d..b6e058df57342 100644
--- a/development/komodo-edit/komodo-edit.SlackBuild
+++ b/development/komodo-edit/komodo-edit.SlackBuild
@@ -33,14 +33,19 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ -z "$ARCH" ]; then
- ARCH=$( uname -m )
- case "$ARCH" in
- i?86) PKG_ARCH=x86 ;;
- x86_64) PKG_ARCH=x86_64 ;;
- *) echo "Architecture not supported"; exit 0;
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
esac
fi
+if [ "$ARCH" = "x86_64" ]; then
+ PKG_ARCH=x86_64
+else
+ PKG_ARCH=x86
+fi
+
set -e
rm -rf $PKG