diff options
Diffstat (limited to 'academic/fiji/fiji.SlackBuild')
-rw-r--r-- | academic/fiji/fiji.SlackBuild | 44 |
1 files changed, 15 insertions, 29 deletions
diff --git a/academic/fiji/fiji.SlackBuild b/academic/fiji/fiji.SlackBuild index 9f97499f69..137669d5c6 100644 --- a/academic/fiji/fiji.SlackBuild +++ b/academic/fiji/fiji.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for fiji -# Copyright 2018-2021 Petar Petrov slackalaxy@gmail.com +# Copyright 2018-2023 Petar Petrov slackalaxy@gmail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=fiji -VERSION=${VERSION:-20201104_1356} +VERSION=${VERSION:-20230801_1717} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -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,24 +57,12 @@ 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 - -# Determine suffix -if [ "$ARCH" = "x86_64" ]; then - SUFFIX=linux64 -else - SUFFIX=linux32 -fi - rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $DIRNAM -tar xvf $CWD/${PRGNAM}-$SUFFIX.tar.gz +#tar xvf $CWD/${PRGNAM}-linux64.tar.gz +unzip $CWD/${PRGNAM}-linux64.zip cd $DIRNAM chown -R root:root . find -L . \ @@ -81,7 +72,7 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Rename the binary we need -mv ImageJ-$SUFFIX $PRGNAM +mv ImageJ-linux64 $PRGNAM # We will put here two tools, so they are not run at startup. mkdir -p unused @@ -114,6 +105,7 @@ cp -a \ jars \ java \ lib \ + licenses \ luts \ macros \ plugins \ @@ -123,12 +115,6 @@ cp -a \ $PRGNAM \ $PKG/opt/$PRGNAM -if [ "$ARCH" = "x86_64" ]; then - cp -a \ - licenses \ - $PKG/opt/$PRGNAM -fi - # If a file called "ImageJ2.desktop" is not present in the directory # of fiji, it will create (and re-create it if you delete it) the file # "~/.local/share/applications/ImageJ2.desktop" upon start. So, let it @@ -139,7 +125,7 @@ fi 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 |