aboutsummaryrefslogtreecommitdiff
path: root/development/komodo-edit/komodo-edit.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/komodo-edit/komodo-edit.SlackBuild')
-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