academic/fiji: Fix ARCH section.

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 19:51:05 +01:00 committed by Willy Sudiarto Raharjo
parent c172e6c4d7
commit 315ca21f96
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 9 additions and 12 deletions

View File

@ -33,11 +33,14 @@ PKGTYPE=${PKGTYPE:-tgz}
DIRNAM=Fiji.app DIRNAM=Fiji.app
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in ARCH=$( uname -m )
i?86) ARCH=i386 ;; fi
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;; # Stop if arch is not supported
esac # 2023-05-16 DW: better if it's before PRINT_PACKAGE_NAME
if [ "$ARCH" != "x86_64" ]; then
printf "\n$ARCH is not supported... \n"
exit 1
fi fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what # If the variable PRINT_PACKAGE_NAME is set, then this script will report what
@ -54,12 +57,6 @@ OUTPUT=${OUTPUT:-/tmp}
set -e set -e
# Stop if arch is not supported
if [ "$ARCH" != "i386" ] && [ "$ARCH" != "x86_64" ]; then
printf "\n\n$ARCH is not supported... \n"
exit 1
fi
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP