summaryrefslogblamecommitdiff
path: root/user/perl-time-duration-parse/APKBUILD
blob: 7f9c5b6f79b358a0ba34d8984fac792730760bb7 (plain) (tree)
1
2
3
4
5
6
7
8

                                                                   


                               
           



                                                             
                                                    
                          
                                                                                        
         



                                                                 


                 


                                                                           
                                                                                                                                                                              
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
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"