blob: 5c2e7815189a0ceb7a81e7183851c1495ddeb423 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Michael Schubert <mschu.dev at gmail>
# Contributor: Giulio Guzzinati <guzzinati.giulio at gmail>
pkgname=imagej
pkgver=1.54m
_pkgver=154
_jar=ij-$pkgver.jar
pkgrel=1
epoch=2
pkgdesc="Image manipulation software for scientists"
arch=('any')
url="https://imagej.net"
license=('Public Domain')
depends=('java-runtime')
makedepends=('unzip')
optdepends=('java-environment-common')
source=("http://wsr.imagej.net/distros/cross-platform/ij$_pkgver.zip"
"https://repo1.maven.org/maven2/net/imagej/ij/$pkgver/$_jar"
"imagej.sh"
"imagej.desktop"
"microscope.xpm")
noextract=("ij$_pkgver.zip")
sha256sums=('f13e6d39ae0ac1e2635347e47d597df43716f68608221b819226559b8efa2450'
'48a45e8ca4fffbee152f2e5cd7920991c8549ca993c0e5337f161bd67705e905'
'c223a3b2437501edd92176f87bbea75d994104e1545eea6c120ef8c774c7114e'
'799188b0b2cf1dc684dc2f029dbd31a4b44b691b51fd5e42027a994452bc038e'
'fd1479568b116a276ca1f645589a8e37ccaf767736c6cc0dcec9672225a82572')
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"/$_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
}
|