summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authormschubert2015-06-12 12:10:32 +0100
committermschubert2015-06-12 12:10:32 +0100
commitd9bd564190fe3551f06ae3036fcb489eff6d8806 (patch)
treedef37dcf38ed023d48078040920d8b3b5352698f /PKGBUILD
downloadaur-d9bd564190fe3551f06ae3036fcb489eff6d8806.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..70a8cb6a3ae
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Michael Schubert <mschu.dev at gmail>
+# Contributor: Giulio Guzzinati <guzzinati.giulio at gmail>
+
+pkgname=imagej
+pkgver=1.49o
+_pkgver=148
+pkgrel=1
+epoch=2
+pkgdesc="Image manipulation software for scientists"
+arch=('any')
+url="http://rsbweb.nih.gov/ij/index.html"
+license=('Public Domain')
+depends=('java-runtime')
+makedepends=('unzip')
+optdepends=('java-environment-common')
+source=("http://rsbweb.nih.gov/ij/download/zips/ij$_pkgver.zip"
+ "http://imagej.nih.gov/ij/upgrade/ij.jar"
+ "imagej.sh"
+ "imagej.desktop"
+ "microscope.xpm")
+noextract=("ij$_pkgver.zip")
+md5sums=('57b5b52a5a6ce5a21f1553cf7a02b4a5'
+ 'SKIP'
+ '7dc3fd02120f699204b3d85a7e383082'
+ '9d60878b6adad0e1895ce875bf299147'
+ 'e7a7cef1b44ad3a8752ba63885fd88fb')
+
+package() {
+ cd "$pkgdir"
+ unzip -d "$pkgdir" "$srcdir/ij$_pkgver.zip"
+ rm -rf ImageJ/ImageJ.exe ImageJ/ImageJ.app ImageJ/run
+
+ mkdir -p "$pkgdir"/usr/share
+ mv ImageJ "$pkgdir"/usr/share/imagej
+ install -m644 "$srcdir"/ij.jar "$pkgdir"/usr/share/imagej/ij.jar
+
+ find "$pkgdir" -type d -exec chmod 755 {} \; -o -exec chmod 644 {} \;
+
+ cd "$srcdir"
+ install -Dm755 imagej.sh "$pkgdir"/usr/bin/imagej
+ install -Dm644 imagej.desktop "$pkgdir"/usr/share/applications/imagej.desktop
+ install -Dm644 microscope.xpm "$pkgdir"/usr/share/pixmaps/microscope.xpm
+}