academic/ncbi-blast: Fix and mv ARCH sect.

Signed-off-by: bedlam <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
D Woodfall 2023-05-16 15:47:13 +01:00 committed by Willy Sudiarto Raharjo
parent 8ebd595149
commit 2900f8345c
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -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"