diff options
author | D Woodfall <dave@slackbuilds.org> | 2023-05-16 20:00:05 +0100 |
---|---|---|
committer | bedlam <dave@slackbuilds.org> | 2023-05-17 00:58:12 +0100 |
commit | 06b00cfdf499ebb4c80dffb4a44ed08111705c2a (patch) | |
tree | 129b96d55d9bc804618297c53e26b953b83374fe | |
parent | 7204ac7dd630bae3aa66f9446dcfdd1f4a2d73bf (diff) | |
download | slackbuilds-06b00cfdf499ebb4c80dffb4a44ed08111705c2a.tar.gz slackbuilds-06b00cfdf499ebb4c80dffb4a44ed08111705c2a.tar.xz |
academic/amplifx: Fix ARCH section.
Signed-off-by: bedlam <dave@slackbuilds.org>
-rw-r--r-- | academic/amplifx/amplifx.SlackBuild | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/academic/amplifx/amplifx.SlackBuild b/academic/amplifx/amplifx.SlackBuild index 5c0887e412..72ed55d7e4 100644 --- a/academic/amplifx/amplifx.SlackBuild +++ b/academic/amplifx/amplifx.SlackBuild @@ -31,7 +31,18 @@ BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -ARCH=i386 +# 2023-05-16 DW: do a proper test for ARCH +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [[ $ARCH != i?86 ]]; then + printf "\n$ARCH is not supported... \n" >/dev/stderr + 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 |