From bfd67b8906fae6753fa443ee4d0850ab95a7495d Mon Sep 17 00:00:00 2001 From: Donald Cooley Date: Sun, 21 Jan 2018 15:39:59 +0700 Subject: network/waterfox: Only support x86_64. Signed-off-by: Willy Sudiarto Raharjo --- network/waterfox/waterfox.SlackBuild | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'network/waterfox') diff --git a/network/waterfox/waterfox.SlackBuild b/network/waterfox/waterfox.SlackBuild index d7020d00f7940..e24726085baf5 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 -- cgit v1.2.3