From 725197a5678cbd13d39f98aca1a5aee257068498 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Sat, 8 Jan 2022 14:46:49 +0000 Subject: system/perl-pod-parser: new package (not provided after perl 5.32.0). fixes #437. --- system/perl-pod-parser/APKBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 system/perl-pod-parser/APKBUILD (limited to 'system') diff --git a/system/perl-pod-parser/APKBUILD b/system/perl-pod-parser/APKBUILD new file mode 100644 index 000000000..843d5f5ac --- /dev/null +++ b/system/perl-pod-parser/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Leo +# Maintainer: Zach van Rijn +pkgname=perl-pod-parser +_pkgreal=Pod-Parser +pkgver=1.63 +pkgrel=0 +pkgdesc="Modules for parsing/translating POD format documents" +url="https://metacpan.org/release/Pod-Parser/" +arch="noarch" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +depends="perl" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/M/MA/MAREKR/Pod-Parser-$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="55f5741bb906701705f489b2314d3f11cd6d63ca5b64a60fdbda7eed0388945f2e68262735c7cc33b7089794630393049e619f9900e85c71bf9223243bc0984a Pod-Parser-1.63.tar.gz" -- cgit v1.2.3-70-g09d2