blob: 2bdd7a96bc4bb529a6d1eb498cf0197cea70e1d5 (
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
44
45
46
47
48
49
|
# Maintainer: Samuel Mesa samuelmesa@linuxmail.org
# Maintainer: Bogusław Ciastek sq5tb[at]tlen.pl
_progname="OpenJUMP"
pkgname=openjump-bin
pkgver=2.3.0
_pkgverf="${pkgver}-r5279[d24616e]-PLUS"
pkgrel=1
pkgdesc="Geographic Information System (GIS) written in the Java (binary version)"
arch=(any)
url="http://www.openjump.org/"
license=('GPL2')
groups=('science')
depends=('java-environment' 'bash')
install=openjump.install
changelog=ChangeLog
md5sums=('d0451428210aadd271dfcbca3870520b')
source=("$pkgname-$pkgver.zip::http://sourceforge.net/projects/jump-pilot/files/${_progname}/$pkgver/${_progname}-Portable-${_pkgverf}.zip/download")
package() {
# unpack
install -d "$pkgdir/opt"
bsdtar --no-same-owner -xzvf $pkgname-$pkgver.zip -C "$pkgdir/opt"
mv "$pkgdir/opt/${_progname}-${_pkgverf}" "$pkgdir/opt/${_progname}"
rm $pkgdir/opt/${_progname}/bin/{oj_macosx.command,oj_windows.bat}
# launcher
install -d "$pkgdir/usr/bin"
chmod a+x "$pkgdir/opt/${_progname}/bin/oj_linux.sh"
ln -s "/opt/${_progname}/bin/oj_linux.sh" "$pkgdir/usr/bin/openjump"
# icon
install -d "$pkgdir/usr/share/applications/"
echo "[Desktop Entry]
Name=${_progname}
Comment=Geographic Information System written in the Java
Exec=/opt/${_progname}/bin/oj_linux.sh
Icon=/opt/${_progname}/lib/icons/oj.png
Terminal=false
Type=Application
X-MultipleArgs=false
Categories=GTK;Science;" > "$pkgdir/usr/share/applications/${_progname}.desktop"
}
# vim:set ts=2 sw=2 et:
|