updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / josm-svn / PKGBUILD
blob1162623fa02dbf943a622e39b002888024a67cf2
1 # Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 pkgname=josm-svn
3 pkgver=4434
4 pkgrel=1
5 pkgdesc="An editor for OpenStreetMap written in Java."
6 arch=('any')
7 url="http://josm.openstreetmap.de/"
8 license=('GPL')
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
17 _svnmod=josm
19 build() {
20   cd "$srcdir"
22   if [ -d $_svnmod/.svn ]; then
23     (cd $_svnmod && svn up -r $pkgver)
24   else
25     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26   fi
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"
35   #
36   # BUILD
37   #
38   . /etc/profile.d/apache-ant.sh
39   ant clean dist
42 package() {
43   cd "$srcdir"
44   
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