# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=catch2 pkgver=2.13.3 pkgrel=0 arch="noarch" url="https://github.com/catchorg/Catch2" pkgdesc="A modern, C++-native, header-only, test framework for unit-tests" license="BSL-1.0" makedepends="cmake" checkdepends="python3" 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 \ -DCMAKE_BUILD_TYPE=None \ -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 --build build --target install } sha512sums="caf0e3a39a2b5983346c2709ce06113da62881780117021c64db987d6c5190c41a9070fb70caa0ee6957cfef0baad87fff4e6558c9fea4fa464e82882fe17d55 catch2-v2.13.3.tar.gz"