aboutsummaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
authorD Woodfall <dave@slackbuilds.org>2023-05-16 20:04:01 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-05-20 11:17:57 +0700
commitc07dad38ed4d30f56aa1615c4bdbe47ed9da53a3 (patch)
treed947906369ed16504eb121716a1123e42f25430b /academic
parent5dc48711f6bddbab1dcfc16838efa7099b2f4574 (diff)
academic/Gblocks: Fix ARCH section.
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r--academic/Gblocks/Gblocks.SlackBuild13
1 files changed, 6 insertions, 7 deletions
diff --git a/academic/Gblocks/Gblocks.SlackBuild b/academic/Gblocks/Gblocks.SlackBuild
index 168de237465b..b20f3c47e574 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"