summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 66dadb66ae960a9bbbdd7c069aed467e4c2b668c (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
# Maintainer: sedot <aur at fry dot fastmail dot com>
pkgname=python-pdal-git
pkgver=2.1.8.r0.g37328e3
pkgrel=1
pkgdesc="PDAL Python bindings."
arch=('x86_64')
url="https://github.com/PDAL/python"
license=('BSD')
depends=('pdal' 'python')
makedepends=('git' 'cython' 'python-numpy')
provides=('python-pdal')
source=("git+https://github.com/PDAL/python")
sha512sums=('SKIP')

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

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

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