# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-math-libm _pkgreal=Math-Libm pkgver=1.00 pkgrel=8 pkgdesc="unknown" url="https://metacpan.org/release/Math-Libm/" arch="all" license="GPL PerlArtistic" cpandepends="" cpanmakedepends=" " depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/D/DS/DSLEWART/$_pkgreal-$pkgver.tar.gz" _builddir="$srcdir/$_pkgreal-$pkgver" prepare() { cd "$_builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { cd "$_builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` make && make test } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="17a1f38e32a82ec9a0307033920559dfe554fdae43b9fefffd7dc0ff690b6c5018079bded8554135da8546ccaf8dc0890e7e9b9a1e3845e53d46c993cec11540 Math-Libm-1.00.tar.gz"