diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-08-08 07:51:37 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-08-08 07:51:37 +0700 |
commit | 706e0aa2df580d466cb02417e9c1eb3e83aa7fbf (patch) | |
tree | c4b08e3a84fabea15dda6089f756a1403ba286d5 /development/komodo-ide | |
parent | 17eabc7045ca8e42baede383ea75dba0f50e68fb (diff) | |
download | slackbuilds-706e0aa2df580d466cb02417e9c1eb3e83aa7fbf.tar.gz |
development/komodo-ide: Fix ARCH detection.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/komodo-ide')
-rw-r--r-- | development/komodo-ide/komodo-ide.SlackBuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/development/komodo-ide/komodo-ide.SlackBuild b/development/komodo-ide/komodo-ide.SlackBuild index d99c551709..fd733366ac 100644 --- a/development/komodo-ide/komodo-ide.SlackBuild +++ b/development/komodo-ide/komodo-ide.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 |