aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-pdf-api2/APKBUILD
blob: 6804cb0f560c6e45a4f73826bceeccd8ffa79d84 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Milan P. Stanić <mps@arvanta.net>
# 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.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"