summaryrefslogtreecommitdiff
path: root/user/freecell-solver/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/freecell-solver/APKBUILD')
-rw-r--r--user/freecell-solver/APKBUILD9
1 files changed, 3 insertions, 6 deletions
diff --git a/user/freecell-solver/APKBUILD b/user/freecell-solver/APKBUILD
index 78c1eadb5..57ebc05a2 100644
--- a/user/freecell-solver/APKBUILD
+++ b/user/freecell-solver/APKBUILD
@@ -8,15 +8,14 @@ url="https://fc-solve.shlomifish.org/"
arch="all"
license="MIT"
depends="python3"
-makedepends="gperf perl perl-task-freecellsolver-testing python3 py3-random2
- py3-six"
checkdepends="gmp-dev libtap-dev perl-dev py3-cffi py3-pycotap the_silver_searcher
valgrind"
+makedepends="cmake gperf perl perl-task-freecellsolver-testing python3
+ py3-random2 py3-six"
subpackages="$pkgname-dev $pkgname-doc"
source="https://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
@@ -26,19 +25,17 @@ build() {
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
- ${CMAKE_CROSSOPTS}
+ ${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
}