# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=perl-datetime pkgver=1.18 pkgrel=0 pkgdesc="DateTime perl module" url="http://search.cpan.org/dist/DateTime/" arch="all" license="GPLv2 or Artistic" depends="perl perl-datetime-locale perl-test-exception perl-math-round perl-datetime-timezone" makedepends="perl-dev" install="" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-$pkgver.tar.gz" _builddir="$srcdir"/DateTime-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" unset CFLAGS perl Build.PL installdirs=vendor || return 1 ./Build } package() { cd "$_builddir" ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } md5sums="58160bea9744a7bc9d7737f7dad9fa72 DateTime-1.18.tar.gz" sha256sums="bada2c9fe3e79429f7c84592d9a9defd3a8c71f7b584389d450aa324340d913a DateTime-1.18.tar.gz" sha512sums="664cc7dacd94fb34d0b185ebfb855ce671f0c9fdbe7097617306cd3e9083fabc07acb3ca024944fe3736d52c0ed3c840c916f9af3d5c4cad0dddfcc61a25ec12 DateTime-1.18.tar.gz"