# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timothy Legge # Maintainer: Timothy Legge pkgname=perl-math-pari #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Math-Pari pkgver=2.030523 pkgrel=1 pkgdesc="Perl interface to PARI." url="https://metacpan.org/release/Math-Pari/" arch="all !s390x" #Tests do not work on S390 license="GPL-1.0-or-later OR Artistic-1.0-Perl OR GPL-2.0-only" depends="perl" makedepends="perl-dev" options="net" # additional sources downloaded from FTP subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/I/IL/ILYAZ/modules/Math-Pari-$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 make -j1 } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums=" 4f75a745111eed1c326270fc4cff5f7785fd353ffbbaf21a33215974671cdb2a4ff8d397a2df41b24002312a43993114a3620f5b6ed7eb6d4bdae9c4f62d671c Math-Pari-2.030523.tar.gz "