diff --git a/main/perl-mailtools/APKBUILD b/main/perl-mailtools/APKBUILD index 83ab72dae635c080d964d7b7b5ec3ad92b6221ee..37a01c13bdb85e1dc2734a98406971faad03fdcb 100644 --- a/main/perl-mailtools/APKBUILD +++ b/main/perl-mailtools/APKBUILD @@ -1,11 +1,11 @@ -# Automatically generated by apkbuild-cpan, template 3 +# Automatically generated by apkbuild-cpan, template 4 # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-mailtools +pkgver=2.22 +pkgrel=0 #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=MailTools -pkgver=2.21 -pkgrel=4 pkgdesc="Various ancient e-mail related modules" provides="perl-mail-tools=$pkgver" replaces="perl-mail-tools" @@ -13,14 +13,16 @@ url="https://metacpan.org/release/MailTools/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-timedate" -makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/M/MA/MARKOV/MailTools-$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 + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ + INSTALLDIRS=vendor \ + NO_PACKLIST=1 \ + NO_PERLLOCAL=1 make } @@ -31,9 +33,15 @@ check() { package() { make DESTDIR="$pkgdir" install - find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +doc() { + local file; find "$pkgdir" -name "*.pod" | while read -r file; do + amove "${file#"$pkgdir"}" + done + default_doc } sha512sums=" -70c7e5760691a1fc0a2812c48a632896db9bf719d3cb07a63c3a4456c5a365855c7f71c7436c84e5085374628f26ad31fcf13e74b3b7242911da59b7916065a0 MailTools-2.21.tar.gz +5bab5af263cbbf1483ebb210086d101ac1d4517dcb30aaba8124a2cc71e3667c32ca19fc2bc169cd646af1a6bb4f7afee84535d1a93668658e1d74f4dc70c3e0 MailTools-2.22.tar.gz "