aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-datetime-format-builder/APKBUILD
blob: 0768064c00892673cf86109d4db861ffc3a1f85b (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      


                                                           
                                                              
                                
           
        
                                                     
                                                           
             
                      
                                                                 
                          
                                                                                                 

                                    
         
                                                                
                                                                     



            
                                                                
                 


           
                                      


                                                                           
                                                                                                                                                                                  
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-datetime-format-builder
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=DateTime-Format-Builder
pkgver=0.83
pkgrel=1
pkgdesc="Create DateTime parser classes and objects."
url="https://metacpan.org/release/DateTime-Format-Builder/"
arch="noarch"
license="Artistic-2.0"
depends="perl perl-datetime-format-strptime perl-params-validate"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-Format-Builder-$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="eb0601dce7bc9adb0b4b6df2058b5f126e36738a9fc1e18c6e09ecf2787fbe7cd9b8ae9a5772590d6fa0df271b5a7fde0f3ab6f2be68e182adaac48ca3ae3837  DateTime-Format-Builder-0.83.tar.gz"