2022-11-22 20:33:36 +01:00

33 lines
1.2 KiB
Plaintext

# Contributor: Brian Vuyk <bvuyk@sama.com>
# Maintainer: Brian Vuyk <bvuyk@sama.com>
pkgname=pdal-python-plugins
pkgver=1.2.0
pkgrel=1
pkgdesc="Supports embedding Python in PDAL pipelines with the readers.numpy and filters.python drivers."
url="https://github.com/PDAL/python-plugins"
arch="aarch64 armhf armv7 ppc64le riscv64 x86 x86_64" # Exclude s390x due to test failures.
license="BSD-3-Clause"
depends="python3 py3-numpy"
checkdepends="pdal"
makedepends="cmake pdal-dev py3-numpy-dev python3-dev py3-setuptools py3-packaging py3-scikit-build ninja"
source="https://files.pythonhosted.org/packages/source/p/pdal-plugins/pdal-plugins-1.2.0.tar.gz"
builddir="$srcdir/pdal-plugins-$pkgver"
build() {
python3 setup.py build -DWITH_TESTS=ON
}
check() {
export PDAL_DRIVER_PATH=$(python3 -c "import os, skbuild; print(os.path.join(skbuild.constants.SKBUILD_DIR(), 'cmake-build'))")
pdal --drivers
$PDAL_DRIVER_PATH/pdal_filters_python_test
$PDAL_DRIVER_PATH/pdal_io_numpy_test
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
869445b7ca51944602b73902a4a456314b5b213dfadc9916fe0c670c845550e41e28968cf6e16ad247164b09c65dc9f0f10f8274eb3a2ca838d1afed45abef46 pdal-plugins-1.2.0.tar.gz
"