# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-datetime-format-strptime _pkgreal=DateTime-Format-Strptime pkgver=1.74 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="3b2b640f93956e82aff47f068c596018700615414c9b9ccf8d6bf68ad7b626ec86a831ec2b68807d7f137c10d4b8cfa5d2d50a6304252f3dfecbe9ff94e59617 DateTime-Format-Strptime-1.74.tar.gz"