# Contributor: Bart Ribbers # Maintainer: pkgname=catch2-3 pkgver=3.4.0 pkgrel=1 arch="all" url="https://github.com/catchorg/Catch2" pkgdesc="Modern, C++-native, header-only, test framework for unit-tests (v3)" license="BSL-1.0" makedepends=" cmake python3 samurai " source="https://github.com/catchorg/Catch2/archive/v$pkgver/catch2-v$pkgver.tar.gz" subpackages="$pkgname-doc" builddir="$srcdir/Catch2-$pkgver" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { cd build # ApprovalTests is broken https://github.com/catchorg/Catch2/issues/1780 CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "ApprovalTests" } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 3b452378201ac53c9ffba7801231aa3b32c5fb496f01d670fcee25baf95f405e565ae2aafba49ea5694f906fc61a8b04592c68b9fb12839767070587a48c89fa catch2-v3.4.0.tar.gz "