# Automatically generated by apkbuild-cpan, template 3 # Maintainer: Milan P. Stanić pkgname=perl-pdf-api2 #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=PDF-API2 pkgver=2.041 pkgrel=0 pkgdesc="Facilitates the creation and modification of PDF files" url="https://metacpan.org/release/PDF-API2/" arch="noarch" license="lgpl_2_1" depends="perl perl-font-ttf" checkdepends="perl-test-exception perl-test-memory-cycle" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/S/SS/SSIMMS/PDF-API2-$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 } 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=" f3b98fccb86e85a1954d370805e098b8a8c94bcc3e44a060ec58fb2079ba5165b4483451c575265525d27aee45a9a85e8bc800cf26e207f6b9183daa0c88c7cb PDF-API2-2.041.tar.gz "