summaryrefslogblamecommitdiff
path: root/user/perl-datetime/APKBUILD
blob: 9bdd7a9450b7af85bfde868460398526988b9867 (plain) (tree)




































                                                                                                                                                                   
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-datetime
_pkgname=DateTime
pkgver=1.50
pkgrel=0
pkgdesc="Date and time object for Perl"
url="https://metacpan.org/release/DateTime"
arch="all"
license="Artistic-2.0"
depends="perl-datetime-locale perl-datetime-timezone perl-dist-checkconflicts
	perl-namespace-autoclean perl-params-validationcompiler perl-specio
	perl-try-tiny"
checkdepends="perl-test-fatal perl-test-warnings"
makedepends="perl-dev perl-cpan-meta-check"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-$pkgver.tar.gz"
builddir="$srcdir/DateTime-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="fa8f57aac2b736a5b8b70005b74a81ea4bc80143714a79f16896c4214776c591f3db6689841a6b5217070e02ccea6ccf30b565c3bb0acdce9d1ea44eb61fe85a  DateTime-1.50.tar.gz"