mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
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:
parent
8ebd595149
commit
2900f8345c
1 changed files with 6 additions and 7 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue