summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29d142272c10053bb1dd5d83fe76d096da22fbb5 (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
# Contributor: Tim Besard <tim.besard@gmail.com>
# Maintainer: Jose Riha <jose 1711 gmail com>

pkgname=osmosis
pkgver=0.48.3
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=(https://github.com/openstreetmap/osmosis/releases/download/${pkgver}/osmosis-${pkgver}.tgz)
md5sums=('88dff1787d608988168d0e6636d257a7')

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
}