aboutsummaryrefslogtreecommitdiff
path: root/academic/fiji/fiji.SlackBuild
diff options
context:
space:
mode:
authorPetar Petrov <slackalaxy@gmail.com>2021-05-18 16:17:38 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-18 23:40:09 +0700
commit5439426bc8a8f45bf5f1cff07cfc888bd16ff4d3 (patch)
treea48ed427a04b316aa34ed4f46ec71b268b6c88cd /academic/fiji/fiji.SlackBuild
parente39996cfac62b13c392c397b6fd8ced7d4ebff43 (diff)
downloadslackbuilds-5439426bc8a8f45bf5f1cff07cfc888bd16ff4d3.tar.xz
academic/fiji: update for version 20201104_1356
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/fiji/fiji.SlackBuild')
-rw-r--r--academic/fiji/fiji.SlackBuild21
1 files changed, 16 insertions, 5 deletions
diff --git a/academic/fiji/fiji.SlackBuild b/academic/fiji/fiji.SlackBuild
index 68c84ec4a696..94db198e80bd 100644
--- a/academic/fiji/fiji.SlackBuild
+++ b/academic/fiji/fiji.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for fiji
-# Copyright 2018-2020 Petar Petrov slackalaxy@gmail.com
+# Copyright 2018-2021 Petar Petrov slackalaxy@gmail.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -45,16 +45,23 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
# Stop if arch is not supported
-if [ "$ARCH" != "x86_64" ]; then
+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=inux32
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $DIRNAM
-tar xvf $CWD/${PRGNAM}-nojre.tar.gz
+tar xvf $CWD/${PRGNAM}-$SUFFIX.tar.gz
cd $DIRNAM
chown -R root:root .
find -L . \
@@ -64,7 +71,7 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Rename the binary we need
-mv ImageJ-linux64 $PRGNAM
+mv ImageJ-$SUFFIX $PRGNAM
# We will put here two tools, so they are not run at startup.
mkdir -p unused
@@ -85,15 +92,19 @@ cd ..
# Update plugins, so that the latest are included in the package. This
# will download stuff during the package creation, something that is
-# against the policy of SlackBuilds.org. However, it is your system,
+# against the policy of SlackBuilds.org. However, it is _your_ system,
# so if you _really_ want this, uncomment the line below.
# ./$PRGNAM --update list-local-only
# Copy the folders, db.xml and the renamed binary to /opt
mkdir -p $PKG/opt/$PRGNAM
cp -a \
+ Contents \
images \
jars \
+ java \
+ lib \
+ licenses \
luts \
macros \
plugins \