# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> pkgname=perl-sub-exporter _pkgreal=Sub-Exporter _author=RJBS _au=${_author%%"${_author#??}"} _a=${_author%%"${_author#?}"} pkgver=0.987 pkgrel=0 pkgdesc="A sophisticated exporter for custom-built routines" url="https://metacpan.org/release/Sub-Exporter" arch="noarch" license="GPL-1.0+ OR Artistic-1.0-Perl" depends="perl-data-optlist perl-sub-install perl-params-util" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } check() { make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="6b682d27a0df8ce971ea48aeca5162e1c70929c51cf27119b30361477876b0b86ecb15ab13a6c3cbe5bb85be9e600589fb9e3c9c4e94bad3fc05b675d293adad Sub-Exporter-0.987.tar.gz"