summaryrefslogblamecommitdiff
path: root/user/perl-datetime/APKBUILD
blob: e925053898dab66a34f92472d7170cc1011df969 (plain) (tree)
1
2
3
4
5



                                                                   
           














                                                                                  




                                                                 



                 



                                                                           
                                                                                                                                                                   
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-datetime
_pkgname=DateTime
pkgver=1.51
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() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="d94d673ecefb7ed8bd485f7be9f3c2c0e9a07c402793f14f5af3bc026cc875d7d2a151f72f1c1d3518e08af133eab247796400215f4304f785d17d84e53caded  DateTime-1.51.tar.gz"