diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-08-08 07:52:34 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-08-08 07:52:34 +0700 |
commit | 7e6258a89fc49c898011f006d74888821edbd64c (patch) | |
tree | ed1f341cc9309dd1e048f5bd9fabf05797f01aeb /development/komodo-edit | |
parent | 706e0aa2df580d466cb02417e9c1eb3e83aa7fbf (diff) | |
download | slackbuilds-7e6258a89fc49c898011f006d74888821edbd64c.tar.gz |
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.SlackBuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/development/komodo-edit/komodo-edit.SlackBuild b/development/komodo-edit/komodo-edit.SlackBuild index e54b2a1eb7..b6e058df57 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 |