From af55c94e1ee48fe49976fdb34dc690f15cd9e724 Mon Sep 17 00:00:00 2001 From: D Woodfall Date: Tue, 16 May 2023 20:04:01 +0100 Subject: academic/Gblocks: Fix ARCH section. Signed-off-by: bedlam --- academic/Gblocks/Gblocks.SlackBuild | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/academic/Gblocks/Gblocks.SlackBuild b/academic/Gblocks/Gblocks.SlackBuild index 168de23746..b20f3c47e5 100644 --- a/academic/Gblocks/Gblocks.SlackBuild +++ b/academic/Gblocks/Gblocks.SlackBuild @@ -32,12 +32,16 @@ PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i386 ;; - arm*) ARCH=arm ;; + i?86) ARCH=i586 ;; *) ARCH=$( uname -m ) ;; esac fi +if [[ $ARCH != i?86 ]] && [ "$ARCH" != "x86_64" ]; then + printf "\n$ARCH is not supported... \n" + exit 1 +fi + # If the variable PRINT_PACKAGE_NAME is set, then this script will report what # the name of the created package would be, and then exit. This information # could be useful to other scripts. @@ -52,11 +56,6 @@ OUTPUT=${OUTPUT:-/tmp} set -e -if [ "$ARCH" != "i386" ] && [ "$ARCH" != "x86_64" ]; then - printf "\n\n$ARCH is not supported... \n" - exit 1 -fi - # Determine the source arch if [ "$ARCH" = "x86_64" ]; then SRCARCH="64" -- cgit v1.2.3-79-gdb01