Commit 6b7b552d authored by Bart Ribbers's avatar Bart Ribbers Committed by Ariadne Conill
Browse files

community/pdal: modernize and enable tests

Also take over maintainership
parent 13d019d0
# Contributor: Bradley J Chambers <brad.chambers@gmail.com>
# Maintainer: 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."
options="!check" # 1 test fails
url="https://pdal.io"
arch="all !armhf !armv7 !s390x !mips !mips64"
# dependency laz-perf-dev missing on armhf, armv7, s390x, mips, mips64
......@@ -32,33 +31,49 @@ makedepends="
libexecinfo-dev
zstd-dev
"
checkdepends="cmd:gdalinfo"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/PDAL/PDAL/releases/download/$pkgver/PDAL-$pkgver-src.tar.gz"
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_PYTHON=ON \
-DBUILD_PLUGIN_CPD=ON \
-DBUILD_PLUGIN_ICEBRIDGE=ON \
-DBUILD_PLUGIN_PGPOINTCLOUD=ON \
-DBUILD_PGPOINTCLOUD_TESTS=OFF \
-DBUILD_PLUGIN_SQLITE=ON \
-DWITH_LASZIP=ON \
-DWITH_LAZPERF=ON \
-DWITH_TESTS=ON
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --build build --target install
}
check() {
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
# 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.tar.gz"
sha512sums="
c54770973de714473bf6cfe6a69e2c880d516abcf71cce755495304093acb41471b4264cb84f11973a482f3de80a8922d7d8b54994fb91c6b012a6894a8bdac5 PDAL-2.2.0-src.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