summaryrefslogtreecommitdiff
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
parent70252859ab7c08136d5086e4d0a67c49928ac352 (diff)
downloadpackages-9bdec2c3a630642250cb09898b5a2185cf8671f1.tar.gz
packages-9bdec2c3a630642250cb09898b5a2185cf8671f1.tar.bz2
packages-9bdec2c3a630642250cb09898b5a2185cf8671f1.tar.xz
packages-9bdec2c3a630642250cb09898b5a2185cf8671f1.zip
user/freecell-solver: move from experimental/
-rw-r--r--experimental/perl-task-freecellsolver-testing/APKBUILD46
-rw-r--r--user/freecell-solver/APKBUILD (renamed from experimental/freecell-solver/APKBUILD)12
2 files changed, 6 insertions, 52 deletions
diff --git a/experimental/perl-task-freecellsolver-testing/APKBUILD b/experimental/perl-task-freecellsolver-testing/APKBUILD
deleted file mode 100644
index 5176d50b0..000000000
--- a/experimental/perl-task-freecellsolver-testing/APKBUILD
+++ /dev/null
@@ -1,46 +0,0 @@
-# Automatically generated by apkbuild-cpan, template 1
-# Contributor: A. Wilcox <awilfox@adelielinux.org>
-# Maintainer: A. Wilcox <awilfox@adelielinux.org>
-pkgname=perl-task-freecellsolver-testing
-_pkgreal=Task-FreecellSolver-Testing
-pkgver=0.0.11
-pkgrel=0
-pkgdesc="Perl module for testing the Freecell Solver package"
-url="http://search.cpan.org/dist/Task-FreecellSolver-Testing/"
-arch="noarch"
-license="MIT"
-cpandepends=""
-cpanmakedepends="perl-module-build"
-depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
-subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/$_pkgreal-v$pkgver.tar.gz"
-builddir="$srcdir/$_pkgreal-v$pkgver"
-
-prepare() {
- cd "$builddir"
- if [ -e Build.PL ]; then
- perl Build.PL installdirs=vendor
- else
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
- fi
-}
-
-build() {
- cd "$builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- ./Build
-}
-
-check() {
- cd "$builddir"
- ./Build test
-}
-
-package() {
- cd "$builddir"
- ./Build install destdir="$pkgdir"
- find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
-}
-
-sha512sums="85c3d7e68e0fa14abac2442ec7b6e90cc4df9f6733fbd87e5a872043a03a71d8cd3a262c816d861a1c729646ff379665c1d5d6e0bc80ae476db089d9d3793b82 Task-FreecellSolver-Testing-v0.0.11.tar.gz"
diff --git a/experimental/freecell-solver/APKBUILD b/user/freecell-solver/APKBUILD
index 4263870e5..fe3df52e6 100644
--- a/experimental/freecell-solver/APKBUILD
+++ b/user/freecell-solver/APKBUILD
@@ -7,10 +7,9 @@ pkgdesc="Library for solving card games"
url="http://fc-solve.shlomifish.org/"
arch="all"
license="MIT"
-depends=""
-depends_dev=""
-makedepends="$depends_dev perl gperf python3 py3-random2"
-install=""
+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"
@@ -21,13 +20,14 @@ build() {
fi
cmake \
-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
+ # The build system generates header files; jobs >1 may cause failures
+ # because .h don't exist yet.
+ make -j1
}
check() {