1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
2 # Contributor: Arnaud Durand-Favreau <biginoz at FREE point FR>
7 pkgdesc="Utility for making maps for Garmin GPS devices"
9 url="http://www.mkgmap.org.uk/index.html"
11 depends=('java-runtime')
12 source=( http://www.mkgmap.org.uk/snapshots/$pkgname-$pkgver.tar.gz)
13 sha256sums=('7f78d51f9697b2ae97bfd44cf02e391a731ad9ca99b61b164c0a3a4566009fc0')
16 cd ${srcdir}/$pkgname-$pkgver
18 install -D -m644 mkgmap.jar ${pkgdir}/usr/share/java/$pkgname/$pkgname.jar
19 install -D -m644 doc/$pkgname.1 ${pkgdir}/usr/share/man/man1/$pkgname.1
22 install -d ${pkgdir}/usr/bin
23 echo "#!/bin/sh" > ${pkgdir}/usr/bin/$pkgname
24 echo CLASSPATH="/usr/share/java/mkgmap/mkgmap.jar" >> ${pkgdir}/usr/bin/$pkgname
25 echo java -jar \"\${CLASSPATH}\" \"\$@\" >> ${pkgdir}/usr/bin/$pkgname
26 chmod 755 ${pkgdir}/usr/bin/$pkgname