aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-math-pari/APKBUILD
blob: 80359b733af72cea898eb7b52cb533036557cf89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-math-pari
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Math-Pari
pkgver=2.030523
pkgrel=0
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
"