# Contributor: Leon Marz # Maintainer: Leon Marz pkgname=openvdb pkgver=10.0.1 pkgrel=2 pkgdesc="Sparse volume data structure and tools" url="https://www.openvdb.org/" arch="aarch64 x86_64" # tests fail on all other arches license="MPL-2.0" makedepends="cmake clang onetbb-dev blosc-dev boost-dev python3-dev gtest-dev samurai" subpackages="$pkgname-static $pkgname-nanovdb:nanovdb:noarch $pkgname-tools:tools $pkgname-dev py3-$pkgname:python" source="$pkgname-$pkgver.tar.gz::https://github.com/AcademySoftwareFoundation/openvdb/archive/v$pkgver.tar.gz" # deadlocked unit tests on builders [ "$CARCH" = "aarch64" ] && options="$options !check" build() { export CC=clang export CXX=clang++ cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=Release \ -DOPENVDB_BUILD_PYTHON_MODULE=ON \ -DOPENVDB_BUILD_UNITTESTS=ON \ -DOPENVDB_BUILD_NANOVDB=ON \ -DOPENVDB_ENABLE_RPATH=OFF cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=1 ctest } package() { DESTDIR="$pkgdir" cmake --install build } tools() { pkgdesc="$pkgdesc (Tools)" amove /usr/bin } nanovdb() { pkgdesc="$pkgdesc (nanovdb)" amove /usr/include/nanovdb } python() { pkgdesc="$pkgdesc (Python bindings)" amove /usr/lib/python3* } sha512sums=" 361cef8932b69b19ee94c47fe78f665a1acabfabc3f45ff9f490e830f73ff092c42f56ce698677476a8ccf062c89e3e4dc6d4c550aa6842438cbd4d404ee83bb openvdb-10.0.1.tar.gz "