aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-time-duration-parse/APKBUILD
blob: c12c3e50a94f0598f7440501cf7e88a9066669ce (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      


                                              
                                                              
                            
           
        
                                                    
                                                       
             
                                               
                                 
                      
                                 
                          
                                                                                           

                                    
         
                                                                

                                                                     

 
         
                                                                
                 


           
                                      


                                                                           
                                                                                                                                                                              
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-time-duration-parse
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Time-Duration-Parse
pkgver=0.15
pkgrel=1
pkgdesc="Parse string that represents time duration"
url="https://metacpan.org/release/Time-Duration-Parse/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-exporter-lite"
makedepends="perl-dev"
checkdepends="perl-time-duration"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/N/NE/NEILB/Time-Duration-Parse-$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="1cd4b303cedc58d8513165297369b3705c2fe07db9b626c922829a8a86586bbdf631cd06052924dfaa030a5179e121bbb9c0d8b7159d54e137cb9e70f3086e20  Time-Duration-Parse-0.15.tar.gz"