diff options
author | D Woodfall <dave@slackbuilds.org> | 2023-05-16 20:04:01 +0100 |
---|---|---|
committer | bedlam <dave@slackbuilds.org> | 2023-05-17 00:58:12 +0100 |
commit | af55c94e1ee48fe49976fdb34dc690f15cd9e724 (patch) | |
tree | c4a30c6c17db3e6a2fa45685289e7f4723a25b48 | |
parent | 06b00cfdf499ebb4c80dffb4a44ed08111705c2a (diff) | |
download | slackbuilds-af55c94e1ee48fe49976fdb34dc690f15cd9e724.tar.gz slackbuilds-af55c94e1ee48fe49976fdb34dc690f15cd9e724.tar.xz |
academic/Gblocks: Fix ARCH section.
Signed-off-by: bedlam <dave@slackbuilds.org>
-rw-r--r-- | academic/Gblocks/Gblocks.SlackBuild | 13 |
1 files 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" |