1 # Maintainer: Jozef Riha <jose1711 at gmail dot com>
6 pkgdesc="application that creates atlases for the J2ME application TrekBuddy"
8 url="http://mobac.dnsalias.org/"
10 depends=('java-runtime')
11 makedepends=('apache-ant' 'sed' 'subversion' 'jdk')
12 source=('mobac.desktop' 'directories.ini')
13 md5sums=('78a831bdc101f859138700f7e61ff148'
14 'eacac8afe131dda257e5d3dfff6c6ac5')
19 _svntrunk="https://mobac.svn.sourceforge.net/svnroot/mobac"
26 msg "Connecting to $_svntrunk ..."
27 if [ -d $_svnmod/.svn ]; then
28 (cd $_svnmod && svn up) || return 1
30 svn co $_svntrunk $_svnmod || return 1
32 msg "SVN checkout done or server timeout"
36 cd $srcdir/mobac/trunk/MOBAC
37 ant || /usr/share/java/apache-ant/bin/ant
41 cd $srcdir/mobac/trunk/MOBAC
42 mkdir -p $pkgdir/usr/share/mobac/mapsources
43 install -Dm 644 ./Mobile_Atlas_Creator.jar $pkgdir/usr/share/mobac/Mobile_Atlas_Creator.jar
44 install -Dm 644 ./README.HTM $pkgdir/usr/share/mobac/README.html
45 install -Dm 644 ./CHANGELOG.txt $pkgdir/usr/share/mobac/CHANGELOG.txt
46 install -Dm 644 ./gpl.txt $pkgdir/usr/share/mobac/gpl.txt
47 # we need to supply the full path to starting script
48 /bin/sed "s/Mobile_Atlas_Creator.jar/\/usr\/share\/mobac\/Mobile_Atlas_Creator.jar/" ./start.sh >./mobac
49 install -Dm 755 ./mobac $pkgdir/usr/bin/mobac
50 install -Dm 644 ../website/images/logo3.png $pkgdir/usr/share/pixmaps/mobac.png
51 install -Dm 644 $srcdir/mobac.desktop $pkgdir/usr/share/applications/mobac.desktop
52 install -Dm 644 $srcdir/directories.ini $pkgdir/usr/share/mobac/directories.ini
53 find $srcdir/mobac/trunk/MOBAC/mapsources -maxdepth 1 -type f -name "*jar" -exec cp '{}' $pkgdir/usr/share/mobac/mapsources \;