diff --git a/academic/ncbi-blast/ncbi-blast.SlackBuild b/academic/ncbi-blast/ncbi-blast.SlackBuild index 5004bcd266..0adf5cbdae 100644 --- a/academic/ncbi-blast/ncbi-blast.SlackBuild +++ b/academic/ncbi-blast/ncbi-blast.SlackBuild @@ -34,12 +34,16 @@ SRCNAM=blast 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" = "x86_64" ] && ! [[ $ARCH =~ i?86 ]]; then + printf "\n\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 # could be useful to other scripts. @@ -54,11 +58,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="x64"