1 # Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
5 pkgdesc="An editor for OpenStreetMap written in Java."
7 url="http://josm.openstreetmap.de/"
9 conflicts=('josm' 'josm-latest')
10 depends=('java-runtime')
11 makedepends=('subversion' 'apache-ant')
12 source=(josm.desktop josm.sh)
13 md5sums=('e2b8c820100f3403a6cd10c1239d659a'
14 'a497395e555e22c5e0412ebbab911737')
16 _svntrunk=http://josm.openstreetmap.de/svn/trunk
22 if [ -d $_svnmod/.svn ]; then
23 (cd $_svnmod && svn up -r $pkgver)
25 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28 msg "SVN checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_svnmod-build"
32 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
33 cd "$srcdir/$_svnmod-build"
38 . /etc/profile.d/apache-ant.sh
45 install -D -m644 $_svnmod-build/dist/josm-custom.jar $pkgdir/usr/share/java/josm/josm.jar
46 install -D -m644 josm.desktop $pkgdir/usr/share/applications/josm.desktop
47 install -D -m755 josm.sh $pkgdir/usr/bin/josm
48 install -D -m644 josm/images/logo.png $pkgdir/usr/share/pixmaps/josm.png