updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / mobac-svn / PKGBUILD
blobdc84cd1ca7568665ef6a7631faee59f1b3866251
1 # Maintainer: Jozef Riha <jose1711 at gmail dot com>
3 pkgname=mobac-svn
4 pkgver=1767
5 pkgrel=1
6 pkgdesc="application that creates atlases for the J2ME application TrekBuddy"
7 arch=('i686' 'x86_64')
8 url="http://mobac.dnsalias.org/"
9 license=('GPL')
10 depends=('java-runtime')
11 makedepends=('apache-ant' 'sed' 'subversion' 'jdk')
12 source=('mobac.desktop' 'directories.ini')
13 md5sums=('78a831bdc101f859138700f7e61ff148'
14          'eacac8afe131dda257e5d3dfff6c6ac5')
16 provides=('mobac')
17 conflicts=('mobac')
19 _svntrunk="https://mobac.svn.sourceforge.net/svnroot/mobac"
20 _svnmod="mobac"
22 build() {
23         cd $srcdir/
25         # get the sources
26         msg "Connecting to $_svntrunk ..."
27         if [ -d $_svnmod/.svn ]; then
28                 (cd $_svnmod && svn up) || return 1
29         else
30                 svn co $_svntrunk $_svnmod || return 1
31         fi
32         msg "SVN checkout done or server timeout"
34         cd $_svnmod
36         cd $srcdir/mobac/trunk/MOBAC
37         ant || /usr/share/java/apache-ant/bin/ant
40 package() {
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 \;