summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a4d3273288b50d86653eaada3f870f3d67e9890 (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
30
31
# Maintainer: gileri <twiked at gmail d(0)t com>
pkgname=pyosmium-git
pkgver=4.0.0.r0.g3091925
pkgrel=1
pkgdesc="Python bindings for libosmium"
url="http://osmcode.org/pyosmium"
arch=('x86_64' 'i686')
license=('custom')
depends=('boost' 'libosmium' 'python' 'protozero')
makedepends=('git' 'pybind11' 'python-setuptools' 'cmake' 'boost-libs')
optdepends=()
conflicts=('pyosmium')
provides=('pyosmium')
source=('pyosmium::git+https://github.com/osmcode/pyosmium.git')
md5sums=('SKIP')

pkgver() {
  cd pyosmium
  git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/pyosmium"
  python setup.py build
}

package() {
  cd "${srcdir}/pyosmium"
  python setup.py install --prefix="/usr/" --root="$pkgdir/" --optimize=1
  install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}