updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / mkgmap / PKGBUILD
blob50e6439d4c25c0376be36d71e95888654d0e506e
1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
2 # Contributor: Arnaud Durand-Favreau <biginoz at FREE point FR>
4 pkgname=mkgmap
5 pkgver=r2164
6 pkgrel=1
7 pkgdesc="Utility for making maps for Garmin GPS devices"
8 arch=('any')
9 url="http://www.mkgmap.org.uk/index.html"
10 license=('GPL')
11 depends=('java-runtime')
12 source=( http://www.mkgmap.org.uk/snapshots/$pkgname-$pkgver.tar.gz)
13 sha256sums=('7f78d51f9697b2ae97bfd44cf02e391a731ad9ca99b61b164c0a3a4566009fc0')
14     
15 package() {
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
21 #executable file
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