aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-pdf-api2/APKBUILD
blob: 221482adc4d3c914ac0ba29fbfb7d34b15ced911 (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
# 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
"