# Automatically generated by apkbuild-cpan, template 1 # Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=perl-datetime-timezone _pkgreal=DateTime-TimeZone pkgver=2.06 pkgrel=0 pkgdesc="Time zone object base class and factory" url="http://search.cpan.org/dist/DateTime-TimeZone/" arch="noarch" license="GPL PerlArtistic" cpandepends="perl-class-singleton perl-try-tiny perl-specio perl-params-validationcompiler perl-module-runtime perl-namespace-autoclean" cpanmakedepends=" perl-test-fatal perl-test-requires " 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() { default_prepare || return 1 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 && make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } md5sums="b24832c5dcf43e132e829c1cdc1fa19c DateTime-TimeZone-2.06.tar.gz" sha256sums="9c51dd5ac957a43732b4a8d5cf7529e5a6b99ca86b447164cab003b190a8a8a6 DateTime-TimeZone-2.06.tar.gz" sha512sums="631ce4ef9031bb4daf413e4132f0f99fcad6d2addd76eb4c636ccfc4163f8678c189594062f7544539b9ce8fe8bd867a43d4d30c6ed6c86b4a561ad0ce800d68 DateTime-TimeZone-2.06.tar.gz"