# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=freecell-solver pkgver=6.2.0 pkgrel=0 pkgdesc="A program that automatically solves layouts of Freecell and similar variants of Card Solitaire" url="https://fc-solve.shlomifish.org" arch="all" license="MIT" makedepends=" cmake cmd:gperf cmocka-dev gmp-dev libbsd-dev perl perl-html-template perl-moo perl-path-tiny perl-template-toolkit perl-text-template py3-cffi py3-freecell-solver py3-pysol-cards py3-random2 py3-six python3 rinutils-dev " subpackages="$pkgname-dev $pkgname-doc" source="https://fc-solve.shlomifish.org/downloads/fc-solve/freecell-solver-$pkgver.tar.xz" build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DFCS_WITH_TEST_SUITE=OFF \ -DBUILD_STATIC_LIBRARY=OFF \ -DCMAKE_SKIP_INSTALL_RPATH=TRUE cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --build build --target install } sha512sums="090f6b93c3f354b5c6bcb1ea67d9313639d23e81998cdc15316246a1cdac26450cf8fd04172bfd5539d875edf407dcdf7ce2c872221b7261f89dbbe309c27560 freecell-solver-6.2.0.tar.xz"