diff options
author | D Woodfall <dave@slackbuilds.org> | 2023-05-16 20:00:05 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-05-20 11:17:57 +0700 |
commit | 5dc48711f6bddbab1dcfc16838efa7099b2f4574 (patch) | |
tree | 0685a0bd679a53ea596065a6a4c911a99c509071 /academic/amplifx | |
parent | 315ca21f961e21b8b15cc494fc1ea99afd98f601 (diff) |
academic/amplifx: Fix ARCH section.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/amplifx')
-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 5c0887e41296d..72ed55d7e479e 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 |