summaryrefslogtreecommitdiff
path: root/user/freecell-solver
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-02 22:50:37 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-02 22:50:37 +0000
commit9bdec2c3a630642250cb09898b5a2185cf8671f1 (patch)
treed43bda41f7b829f431c3793a0bcaff24f40ba05a /user/freecell-solver
parent70252859ab7c08136d5086e4d0a67c49928ac352 (diff)
downloadpackages-9bdec2c3a630642250cb09898b5a2185cf8671f1.tar.gz
packages-9bdec2c3a630642250cb09898b5a2185cf8671f1.tar.bz2
packages-9bdec2c3a630642250cb09898b5a2185cf8671f1.tar.xz
packages-9bdec2c3a630642250cb09898b5a2185cf8671f1.zip
user/freecell-solver: move from experimental/
Diffstat (limited to 'user/freecell-solver')
-rw-r--r--user/freecell-solver/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/user/freecell-solver/APKBUILD b/user/freecell-solver/APKBUILD
new file mode 100644
index 000000000..fe3df52e6
--- /dev/null
+++ b/user/freecell-solver/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=freecell-solver
+pkgver=4.18.0
+pkgrel=0
+pkgdesc="Library for solving card games"
+url="http://fc-solve.shlomifish.org/"
+arch="all"
+license="MIT"
+depends="python3"
+makedepends="gperf perl perl-task-freecellsolver-testing python3 py3-random2"
+checkdepends="gmp-dev libtap-dev perl-dev py3-cffi the_silver_searcher valgrind"
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://fc-solve.shlomifish.org/downloads/fc-solve/freecell-solver-$pkgver.tar.xz"
+
+build() {
+ cd "$builddir"
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS}
+ # The build system generates header files; jobs >1 may cause failures
+ # because .h don't exist yet.
+ make -j1
+}
+
+check() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="aa6ba724ade171c5b69517136ba97b46e811d330903a4735ef7ff4e44c905c4a91260ac73b76b90e6406ba7dacc1083c422c16f98ba7b647ae891a50732087a4 freecell-solver-4.18.0.tar.xz"