# Automatically generated by apkbuild-cpan, template 1 # Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=perl-datetime _pkgreal=DateTime pkgver=1.20 pkgrel=0 pkgdesc="Perl module for DateTime" url="http://search.cpan.org/dist/DateTime/" arch="all" license="GPL PerlArtistic" cpandepends="" cpanmakedepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends perl-module-build perl-test-fatal perl-test-warnings" 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" if [ -e Build.PL ]; then perl Build.PL installdirs=vendor || return 1 else PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 fi } build() { cd "$_builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` ./Build && ./Build test } package() { cd "$_builddir" ./Build install destdir="$pkgdir" || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } md5sums="9cc3afee0f5cf6fb786aa7e2e32a89bd DateTime-1.20.tar.gz" sha256sums="ac909ca4e26f2713940302ad1fd8068de0a6970416a5a88a812cceb155becb0d DateTime-1.20.tar.gz" sha512sums="b0374407683da3b68d0a127a2899deb8222f3bbd3e1f68481a000ca8c7fbde69bf4e43253b4cdd68f97b0a0ee7d8ed9d7a08fda8b5bf713b0f02ba722cd3aff9 DateTime-1.20.tar.gz"