diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-01-01 20:44:18 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-01-01 20:44:18 +0000 |
commit | a278c3e05013fa3366554af5dee719a0ba90d798 (patch) | |
tree | 3e8b407a54ea97bc7fe4a5a2757dde27a6320e37 /user/freecell-solver/APKBUILD | |
parent | 4c66fd861e536f7b7e2e68a78b748cfeb62026c4 (diff) | |
download | packages-a278c3e05013fa3366554af5dee719a0ba90d798.tar.gz packages-a278c3e05013fa3366554af5dee719a0ba90d798.tar.bz2 packages-a278c3e05013fa3366554af5dee719a0ba90d798.tar.xz packages-a278c3e05013fa3366554af5dee719a0ba90d798.zip |
user/*: Modernise / fix syntax / deps
Diffstat (limited to 'user/freecell-solver/APKBUILD')
-rw-r--r-- | user/freecell-solver/APKBUILD | 9 |
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 } |