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
|
||||
|
@ -128,7 +125,7 @@ $PKG/opt/$PRGNAM
|
|||
cp $CWD/ImageJ2.desktop $PKG/opt/$PRGNAM
|
||||
|
||||
# Install the simple wrapper
|
||||
install -D -m755 $CWD/$PRGNAM $PKG/usr/bin/$PRGNAM
|
||||
install -D -m 755 $CWD/$PRGNAM $PKG/usr/bin/$PRGNAM
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
|
Loading…
Reference in New Issue