# Contributor: A. Wilcox # Maintainer: Adélie Perl Team pkgname=perl-time-duration-parse _pkgreal=Time-Duration-Parse _author=NEILB _au=${_author%%"${_author#??}"} _a=${_author%%"${_author#?}"} pkgver=0.15 pkgrel=0 pkgdesc="Parse strings in Perl that represent time durations" url="https://metacpan.org/release/Time-Duration-Parse" arch="noarch" license="Artistic-1.0-Perl" depends="perl perl-exporter-lite perl-time-duration" 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="1cd4b303cedc58d8513165297369b3705c2fe07db9b626c922829a8a86586bbdf631cd06052924dfaa030a5179e121bbb9c0d8b7159d54e137cb9e70f3086e20 Time-Duration-Parse-0.15.tar.gz"