summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 84cb3667f765adbf08405532ca5c89016ff880ce (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
# Contributor: Tim Besard <tim.besard@gmail.com>
# Maintainer: Jose Riha <jose 1711 gmail com>
pkgname=osmosis
pkgver=0.47
pkgrel=1
pkgdesc="Command line Java application for processing OSM data."
arch=('any')
url="http://wiki.openstreetmap.org/wiki/Osmosis"
license=('GPL')
depends=('java-runtime')
source=(http://bretth.dev.openstreetmap.org/$pkgname-build/$pkgname-$pkgver.tgz) 
md5sums=('55bea00a6bf1e9acee8516f491c53c00')

package() {
  cd "$srcdir"
  rm ${pkgname}-${pkgver}.tgz
  mkdir -p $pkgdir/usr/share/$pkgname
  cp -a * $pkgdir/usr/share/$pkgname/  
  chmod +x $pkgdir/usr/share/$pkgname/bin/$pkgname
  
  mkdir -p $pkgdir/usr/bin
  cat >> $pkgdir/usr/bin/$pkgname << EOF 
#!/bin/bash
/usr/share/$pkgname/bin/$pkgname "\$@"
EOF
  chmod a+x $pkgdir/usr/bin/$pkgname
}