aboutsummaryrefslogtreecommitdiffstats
path: root/community/pdal/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/pdal/APKBUILD')
-rw-r--r--community/pdal/APKBUILD79
1 files changed, 79 insertions, 0 deletions
diff --git a/community/pdal/APKBUILD b/community/pdal/APKBUILD
new file mode 100644
index 0000000000..6803298584
--- /dev/null
+++ b/community/pdal/APKBUILD
@@ -0,0 +1,79 @@
+# Contributor: Bradley J Chambers <brad.chambers@gmail.com>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=pdal
+pkgver=2.2.0
+pkgrel=2
+pkgdesc="PDAL is a C++ BSD library for translating and manipulating point cloud data."
+url="https://pdal.io"
+arch="all !armhf !armv7 !s390x !mips !mips64"
+# dependency laz-perf-dev missing on armhf, armv7, s390x, mips, mips64
+# dependency cpd-dev missing on armv7, mips, mips64
+# dependency gdal-dev missing on s390x, mips, mips64
+license="BSD-2-Clause"
+depends="python3 py3-numpy>=1.14.3-r1"
+makedepends="
+ cmake
+ eigen-dev
+ gdal-dev
+ laz-perf-dev
+ libgeotiff-dev
+ libxml2-dev
+ python3-dev
+ py3-numpy-dev
+ hdf5-dev
+ cpd-dev
+ fgt-dev
+ sqlite-dev
+ postgresql-dev
+ curl-dev
+ laszip-dev
+ linux-headers
+ libexecinfo-dev
+ zstd-dev
+ "
+checkdepends="gdal-tools"
+subpackages="$pkgname-dev"
+source="https://github.com/PDAL/PDAL/releases/download/$pkgver/PDAL-$pkgver-src.tar.gz"
+builddir="$srcdir/PDAL-$pkgver-src"
+
+build() {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=None \
+ -DBUILD_PLUGIN_CPD=ON \
+ -DBUILD_PLUGIN_ICEBRIDGE=ON \
+ -DBUILD_PLUGIN_PGPOINTCLOUD=ON \
+ -DBUILD_PGPOINTCLOUD_TESTS=OFF \
+ -DWITH_LASZIP=ON \
+ -DWITH_LAZPERF=ON \
+ -DWITH_TESTS=ON
+ cmake --build build
+}
+
+check() {
+ cd build
+
+ # skipped tests are broken
+ local skipped_tests="pdal_("
+ local tests="
+ filters_ferry
+ filters_stats
+ io_ept_reader
+ io_optech
+ "
+ for test in $tests; do
+ skipped_tests="$skipped_tests|$test"
+ done
+ skipped_tests="$skipped_tests)_test"
+ msg "$skipped_tests"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "$skipped_tests"
+}
+
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+}
+
+sha512sums="
+c54770973de714473bf6cfe6a69e2c880d516abcf71cce755495304093acb41471b4264cb84f11973a482f3de80a8922d7d8b54994fb91c6b012a6894a8bdac5 PDAL-2.2.0-src.tar.gz
+"