aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-datetime-format-strptime/APKBUILD
blob: 8860e592f7ff26b4af2d3ee550411eb48f51ed54 (plain) (tree)
1
2
3
4
5
6
7
8
9
10




                                                           
           



                                                           
                      

                                                                      
                                     
                                                     




                                                                                     
                                    

           
                      




                                                                 
                      
                                                               





                      


           

                                      


                                                                           
                                                                                                                                                                                   
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-datetime-format-strptime
_pkgreal=DateTime-Format-Strptime
pkgver=1.76
pkgrel=0
pkgdesc="Parse and format strp and strf time patterns"
url="http://search.cpan.org/dist/DateTime-Format-Strptime/"
arch="noarch"
license="Artistic-2.0"
cpandepends="perl-params-validate perl-datetime perl-try-tiny
		perl-package-deprecationmanager perl-datetime-timezone
		perl-datetime-locale"
cpanmakedepends="perl-test-warnings perl-test-fatal "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="896c6f1bdb77cf21f1170aae97466a96d7a4469d478f31ea66c16ed9ba5c86edd184fa578ea113bcc90a25fbd6b4ae5264053f1ef6092764b15f7fd461b491c9  DateTime-Format-Strptime-1.76.tar.gz"