1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 02:05:16 +03:00
aports/community/perl-pdf-api2/APKBUILD
2022-11-17 10:07:29 +00:00

36 lines
1.1 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=perl-pdf-api2
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=PDF-API2
pkgver=2.044
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="
5d749676496d133164125275f1d35d84c6e3373cebf2b1515266473470a97cc1843f4dc8a494be0146c0c58486b535e7c27b4a034ae1b7ad19ecdb1e5c69e425 PDF-API2-2.044.tar.gz
"