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
|
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
|
||||||
|
|
Loading…
Reference in New Issue