summaryrefslogtreecommitdiff
path: root/user/black-hole-solver/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2022-06-11 21:36:37 -0500
committerZach van Rijn <me@zv.io>2022-10-21 18:34:01 -0500
commit016d19ccf5705a48010adc24f0e7465d9af3bf71 (patch)
treedce2b6e56621da63bb868e820c28e51e48025af1 /user/black-hole-solver/APKBUILD
parent7156408bdf4c0ae58b5d85d52e857b1afdab6945 (diff)
downloadpackages-016d19ccf5705a48010adc24f0e7465d9af3bf71.tar.gz
packages-016d19ccf5705a48010adc24f0e7465d9af3bf71.tar.bz2
packages-016d19ccf5705a48010adc24f0e7465d9af3bf71.tar.xz
packages-016d19ccf5705a48010adc24f0e7465d9af3bf71.zip
user/black-hole-solver: New package
Diffstat (limited to 'user/black-hole-solver/APKBUILD')
-rw-r--r--user/black-hole-solver/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/user/black-hole-solver/APKBUILD b/user/black-hole-solver/APKBUILD
new file mode 100644
index 000000000..0e0144245
--- /dev/null
+++ b/user/black-hole-solver/APKBUILD
@@ -0,0 +1,43 @@
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=black-hole-solver
+pkgver=1.10.1
+pkgrel=0
+pkgdesc="Move solver for various solitaire card games"
+url="https://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/"
+arch="all"
+license="Expat"
+depends=""
+checkdepends="perl-dir-manifest perl-env-path perl-file-which perl-inline
+ perl-inline-c perl-test-differences perl-test-trailingspace
+ perl-test-some perl-test-trap"
+makedepends="cmake perl-path-tiny rinutils"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://fc-solve.shlomifish.org/downloads/fc-solve/black-hole-solver-$pkgver.tar.xz"
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake -Bbuild \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS} \
+ .
+ make -C build
+}
+
+check() {
+ rm t/perltidy.t # test could fail on every bump
+ rm t/valgrind.t # we don't run Valgrind tests
+ CTEST_OUTPUT_ON_FAILURE=TRUE make -C build test
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir" install
+}
+
+sha512sums="65e69a699922c92332da70b35303f50fbbe3f7b324e70428d24e75910ab6472db22936fbabe716fdd2ef9a88aaac3d8765b8007ceeb03d50ec865b183a5c8f69 black-hole-solver-1.10.1.tar.xz"