Commit caba5cbb authored by Bradley J Chambers's avatar Bradley J Chambers Committed by Ariadne Conill

testing/py-pdal: new aport

Python bindings for PDAL (testing/pdal)
parent 21f9a505
# Contributor: Bradley J Chambers <brad.chambers@gmail.com>
# Maintainer: Bradley J Chambers <brad.chambers@gmail.com>
pkgname=py-pdal
pkgver=1.5.0
pkgrel=0
pkgdesc="PDAL Python bindings"
url="https://github.com/pdal/pdal"
arch="x86 x86_64"
license="BSD"
makedepends="cython-dev python2-dev py-setuptools py-packaging pdal-dev pdal py-numpy-dev libxml2-dev"
install=""
subpackages="py2-${pkgname#py-}:_py2"
source="pdal-$pkgver.tar.gz::https://github.com/${pkgname#py-}/${pkgname#py-}/archive/$pkgver.tar.gz"
builddir="$srcdir/PDAL-$pkgver/python"
build() {
cd "$builddir"
python2 setup.py build
}
package() {
mkdir -p "$pkgdir"
}
_py2() {
replaces="$pkgname"
depends="${depends//^py-/py2-}"
_py python2
}
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
sha512sums="666c7f45fbe22d2d7a913b2ffa171a9727cdcd41856f52035ab0b4aec26c5569098710276f1144802d07bbc9e2656209ce1b2ff363a036c8c2d13ef2771c0657 pdal-1.5.0.tar.gz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment