summaryrefslogtreecommitdiffstats
path: root/network/waterfox
diff options
context:
space:
mode:
author Donald Cooley2018-01-21 09:39:59 +0100
committer Willy Sudiarto Raharjo2018-01-27 01:43:47 +0100
commitbfd67b8906fae6753fa443ee4d0850ab95a7495d (patch)
treeb51f026c51823455365705bb19bf5f07f720f6d9 /network/waterfox
parent41f7234e1cd3f79b40f4004f371608dd89386d89 (diff)
downloadslackbuilds-bfd67b8906fae6753fa443ee4d0850ab95a7495d.tar.gz
network/waterfox: Only support x86_64.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/waterfox')
-rw-r--r--network/waterfox/waterfox.SlackBuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/network/waterfox/waterfox.SlackBuild b/network/waterfox/waterfox.SlackBuild
index d7020d00f7..e24726085b 100644
--- a/network/waterfox/waterfox.SlackBuild
+++ b/network/waterfox/waterfox.SlackBuild
@@ -27,9 +27,16 @@
PRGNAM=waterfox
VERSION=${VERSION:-56.0.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
-ARCH=${ARCH:-x86_64}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
@@ -38,7 +45,7 @@ OUTPUT=${OUTPUT:-/tmp}
# Check and then abort if the architecture is 32-bit.
if [ "$ARCH" != "x86_64" ]; then
- echo "Sorry, a binary package is only available for x86_64. Aborting."
+ echo "$ARCH is unsupported"
exit 1
fi