aboutsummaryrefslogtreecommitdiffstats
path: root/testing/black-hole-solver/APKBUILD
blob: eff862bd765cbb316af9a6eb1cb58fcfd53e1866 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
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"