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:
parent
c172e6c4d7
commit
315ca21f96
|
@ -33,11 +33,14 @@ PKGTYPE=${PKGTYPE:-tgz}
|
|||
DIRNAM=Fiji.app
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i386 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
ARCH=$( uname -m )
|
||||
fi
|
||||
|
||||
# Stop if arch is not supported
|
||||
# 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
|
||||
|
||||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||
|
@ -54,12 +57,6 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
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
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
|
|
Loading…
Reference in New Issue