aboutsummaryrefslogtreecommitdiffstats
path: root/testing/freecell-solver/APKBUILD
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2020-07-01 15:49:47 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-07-09 08:52:50 +0000
commit4e855599673bcb25d2e4d3fdde555cea6fee96d4 (patch)
tree095db4f8ac1a79be543ef8e71dbd2f9320134c87 /testing/freecell-solver/APKBUILD
parentb600b05d2d254937b7a0c823100964d1f727b2b7 (diff)
downloadaports-4e855599673bcb25d2e4d3fdde555cea6fee96d4.tar.gz
aports-4e855599673bcb25d2e4d3fdde555cea6fee96d4.tar.bz2
aports-4e855599673bcb25d2e4d3fdde555cea6fee96d4.tar.xz
testing/freecell-solver: new aport
Diffstat (limited to 'testing/freecell-solver/APKBUILD')
-rw-r--r--testing/freecell-solver/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/freecell-solver/APKBUILD b/testing/freecell-solver/APKBUILD
new file mode 100644
index 0000000000..39a3dbb3c4
--- /dev/null
+++ b/testing/freecell-solver/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=freecell-solver
+pkgver=5.24.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 perl rinutils-dev perl-path-tiny cmd:gperf python3 py3-random2 py3-six py3-pysol-cards py3-cffi py3-freecell-solver cmocka-dev perl-html-template perl-text-template perl-template-toolkit libbsd-dev gmp-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
+ cmake --build build
+}
+
+check() {
+ cd build
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --build build --target install
+}
+
+sha512sums="264a7e016a5dbd093f126aab520b36c98c02111a3834ba09646ba527046973163aeefe41449e05d161d1790d2f599c6a3302402442b96b9bd524e97fc4f54b91 freecell-solver-5.24.0.tar.xz"