summaryrefslogtreecommitdiffstats
path: root/academic/fiji/fiji.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/fiji/fiji.SlackBuild')
-rw-r--r--academic/fiji/fiji.SlackBuild22
1 files changed, 5 insertions, 17 deletions
diff --git a/academic/fiji/fiji.SlackBuild b/academic/fiji/fiji.SlackBuild
index 9f97499f69..6ab84821d4 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-2022 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:-20220414_1745}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -60,18 +60,11 @@ if [ "$ARCH" != "i386" ] && [ "$ARCH" != "x86_64" ]; then
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
cd $DIRNAM
chown -R root:root .
find -L . \
@@ -81,7 +74,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 +107,7 @@ cp -a \
jars \
java \
lib \
+ licenses \
luts \
macros \
plugins \
@@ -123,12 +117,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