diff --git a/testing/perl-algorithm-evolutionary/APKBUILD b/testing/perl-algorithm-evolutionary/APKBUILD new file mode 100644 index 00000000000..b1475ad86c5 --- /dev/null +++ b/testing/perl-algorithm-evolutionary/APKBUILD @@ -0,0 +1,43 @@ +# Automatically generated by apkbuild-cpan, template 4 +# Contributor: Celeste +# Maintainer: Celeste +pkgname=perl-algorithm-evolutionary +pkgver=0.82.1 +pkgrel=0 +#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan +_pkgreal=Algorithm-Evolutionary +pkgdesc="Perl module for performing paradigm-free evolutionary algorithms" +url="https://metacpan.org/release/Algorithm-Evolutionary/" +arch="noarch" +license="GPL-2.0-only" +depends=" + perl perl-algorithm-permute perl-bit-vector perl-clone perl-gd + perl-math-random perl-object-array perl-sort-key + perl-statistics-basic perl-string-random perl-tree-dag_node + perl-xml-parser perl-xml-parser-style-easytree perl-yaml + " +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/J/JM/JMERELO/Algorithm-Evolutionary-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ + INSTALLDIRS=vendor \ + NO_PACKLIST=1 \ + NO_PERLLOCAL=1 + make +} + +check() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums=" +9b66853f51da2078f0965d20e410cab816a8651922ab6f8257c345f1e111acb7e0d3438e8437e3628567d712e3211fced771836c0a6082844b565cd74b3de5c0 Algorithm-Evolutionary-0.82.1.tar.gz +"