summaryrefslogtreecommitdiff
path: root/user/perl-datetime/APKBUILD
blob: c1157189e5d6e6dbfe5098d77ac92923214ae48f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-datetime
_pkgreal=DateTime
_author=DROLSKY
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
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 perl"
checkdepends="perl-test-fatal perl-test-warnings"
makedepends="perl-dev perl-cpan-meta-check"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$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"