summaryrefslogtreecommitdiff
path: root/academic/ImageJ/ImageJ.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/ImageJ/ImageJ.SlackBuild')
-rw-r--r--academic/ImageJ/ImageJ.SlackBuild27
1 files changed, 10 insertions, 17 deletions
diff --git a/academic/ImageJ/ImageJ.SlackBuild b/academic/ImageJ/ImageJ.SlackBuild
index a10cf37730..5d230524af 100644
--- a/academic/ImageJ/ImageJ.SlackBuild
+++ b/academic/ImageJ/ImageJ.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for ImageJ
-# Copyright 2012 Petar Petrov, ppetrov@paju.oulu.fi
+# Copyright 2012-2013 Petar Petrov, ppetrov@paju.oulu.fi
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,19 +22,19 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-PRGNAM=ImageJ
-VERSION=${VERSION:-1.45}
+PRGNAM=ImageJ
+VERSION=${VERSION:-1.46}
ARCH=noarch
BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo}
+TAG=${TAG:-_SBo}
SRCNAM=ij
-SRCVER=145
+SRCVER=146
CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
+OUTPUT=${OUTPUT:-/tmp}
set -e
@@ -44,7 +44,6 @@ cd $TMP
rm -rf $PRGNAM
unzip $CWD/${SRCNAM}${SRCVER}.zip
cd $PRGNAM
-unzip $CWD/ucsd-plugins.zip
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -55,22 +54,16 @@ find . \
mkdir -p $PKG/usr/share/$PRGNAM
cp -a luts macros plugins ij.jar $PKG/usr/share/$PRGNAM
-# Install bio-formats plugins
-mkdir -p $PKG/usr/share/$PRGNAM/plugins/LOCI
-cp -a $CWD/loci_tools.jar $PKG/usr/share/$PRGNAM/plugins/LOCI
-
-# Install UCSD confocal microscopy plugins
-cp -a UCSD\ Plugins $PKG/usr/share/$PRGNAM/plugins/
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.html $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Fix permissions
find $PKG -type d -exec chmod 755 {} \; -o \
- -type f -exec chmod 644 {} \;
+ -type f -exec chmod 644 {} \;
-# Install wrapper of ij.jar
+# Install the wrapper of ij.jar, taken from the link below:
+# http://rsb.info.nih.gov/ij/download/linux/unix-script.txt
install -D -m755 $CWD/imagej $PKG/usr/bin/imagej
mkdir -p $PKG/usr/share/{applications,pixmaps}