updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / osmosis / PKGBUILD
blob2b208ab62ab9ac8b9afa03ad48fd487c0bfa3e05
1 # Maintainer: Tim Besard <tim.besard@gmail.com>
2 pkgname=osmosis
3 pkgver=0.39     
4 pkgrel=3
5 pkgdesc="Command line Java application for processing OSM data."
6 arch=('any')
7 url="http://wiki.openstreetmap.org/wiki/Osmosis"
8 license=('GPL')
9 depends=('java-runtime')
10 makedepends=()
11 source=(http://bretth.dev.openstreetmap.org/$pkgname-build/$pkgname-$pkgver.tgz) 
12 md5sums=('793a1cff312ed003e90ee090d77c33db')
14 build() {
15   cd "$srcdir/$pkgname-$pkgver"
16   mkdir -p $pkgdir/usr/share/$pkgname
17   cp -a * $pkgdir/usr/share/$pkgname/  
18   chmod +x $pkgdir/usr/share/$pkgname/bin/$pkgname
19   
20   mkdir -p $pkgdir/usr/bin
21   cat >> $pkgdir/usr/bin/$pkgname << EOF 
22 #!/bin/bash
23 /usr/share/$pkgname/bin/$pkgname "\$@"
24 EOF
25   chmod a+x $pkgdir/usr/bin/$pkgname