# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=perl-datetime pkgver=1.03 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="ea0fc830410b9ce3baeef3525bc0acdd DateTime-1.03.tar.gz" sha256sums="384f97c73da02492d771d6b5c3b37f6b18c2e12f4db3246b1d61ff19c6d6ad6d DateTime-1.03.tar.gz" sha512sums="6764b8bd8ccb22429d17dfc48412a0223481ae43249920347ae91514dbbe0d2f820601372b9cdae312d0ba9460c9abeae9e189afb1666b90e27b09f3daaf335f DateTime-1.03.tar.gz"