summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45a69301c1b0a26b088710101f60f372a7cd8ca6 (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: Jozef Riha <jose1711 at gmail dot com>

pkgname=mobac-svn
pkgver=r2274
pkgrel=1
pkgdesc="application that creates atlases for the J2ME application TrekBuddy"
arch=('i686' 'x86_64')
url="http://mobac.sourceforge.net/"
license=('GPL')
depends=('java-runtime')
makedepends=('apache-ant' 'sed' 'subversion' 'java-environment')
source=('mobac.desktop' 'directories.ini' 'mobac::svn://svn.code.sf.net/p/mobac/code/trunk')
md5sums=('78a831bdc101f859138700f7e61ff148'
         'eacac8afe131dda257e5d3dfff6c6ac5'
         'SKIP')

provides=('mobac')
conflicts=('mobac')

#_svntrunk="http://svn.code.sf.net/p/mobac/code/trunk/"
#_svnmod="mobac"

pkgver() {
 cd "${pkgname%%-svn}"
 local ver="$(svnversion)"
 printf "r%s" "${ver//[[:alpha:]]}"
}


build() {
	cd $srcdir/mobac/MOBAC
	ant #|| /usr/share/java/apache-ant/bin/ant
}

package() {
	cd $srcdir/mobac/MOBAC
	mkdir -p $pkgdir/usr/share/mobac/mapsources
	install -Dm 644 ./Mobile_Atlas_Creator.jar $pkgdir/usr/share/mobac/Mobile_Atlas_Creator.jar
	install -Dm 644 ./README.HTM $pkgdir/usr/share/mobac/README.html
	install -Dm 644 ./CHANGELOG.txt $pkgdir/usr/share/mobac/CHANGELOG.txt
	install -Dm 644 ./gpl.txt $pkgdir/usr/share/mobac/gpl.txt
	# we need to supply the full path to starting script
	/usr/bin/sed "s/Mobile_Atlas_Creator.jar/\/usr\/share\/mobac\/Mobile_Atlas_Creator.jar/" ./start.sh >./mobac
	install -Dm 755 ./mobac $pkgdir/usr/bin/mobac
	install -Dm 644 ../website/images/logo3.png $pkgdir/usr/share/pixmaps/mobac.png
	install -Dm 644 $srcdir/mobac.desktop $pkgdir/usr/share/applications/mobac.desktop
	install -Dm 644 $srcdir/directories.ini $pkgdir/usr/share/mobac/directories.ini
	find $srcdir/mobac/MOBAC/mapsources -maxdepth 1 -type f -name "*jar" -exec cp '{}' $pkgdir/usr/share/mobac/mapsources \;
}