# Automatically generated by apkbuild-cpan, template 3 # Contributor: Milan P. Stanić # Maintainer: Milan P. Stanić pkgname=perl-pdf-api2 #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=PDF-API2 pkgver=2.040 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" makedepends="perl-dev" 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="4b60e50bfded7c58be5e086db245b59e6f4fa08a9aa52e52f2c67036c27f5411c05ddc3980349ffe30ee20af8ea4f67eb67ec84724fc408e69de5e6da9cebdfa PDF-API2-2.040.tar.gz"