# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=black-hole-solver pkgver=1.10.1 pkgrel=0 pkgdesc="Solvers and statistics for 'Golf' solitaire, 'Black Hole' solitaire, 'All in a Row' solitaire and related card patience games" url="https://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver" arch="all" license="MIT" depends=" perl perl-env-path perl-path-tiny " makedepends=" cmake perl-utils python3 rinutils-dev " checkdepends=" perl-file-which perl-test-differences " subpackages="$pkgname-dev $pkgname-doc" source="https://fc-solve.shlomifish.org/downloads/fc-solve/black-hole-solver-$pkgver.tar.xz" options="!check" # Requires not yet packaged perl modules build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_SKIP_RPATH=ON cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums="65e69a699922c92332da70b35303f50fbbe3f7b324e70428d24e75910ab6472db22936fbabe716fdd2ef9a88aaac3d8765b8007ceeb03d50ec865b183a5c8f69 black-hole-solver-1.10.1.tar.xz"