diff options
author | Donald Cooley <chytraeu@sdf.org> | 2018-01-21 15:39:59 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-01-27 07:43:47 +0700 |
commit | bfd67b8906fae6753fa443ee4d0850ab95a7495d (patch) | |
tree | b51f026c51823455365705bb19bf5f07f720f6d9 | |
parent | 41f7234e1cd3f79b40f4004f371608dd89386d89 (diff) |
network/waterfox: Only support x86_64.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/waterfox/waterfox.SlackBuild | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/network/waterfox/waterfox.SlackBuild b/network/waterfox/waterfox.SlackBuild index d7020d00f794..e24726085baf 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 |