summaryrefslogtreecommitdiff
path: root/user/perl-datetime-locale/APKBUILD
blob: 557e75f8a05ff99f1ff817c72cca0306791d3b93 (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
38
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-datetime-locale
_pkgreal=DateTime-Locale
_author=DROLSKY
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.25
pkgrel=0
pkgdesc="Locale support for Perl DateTime"
url="https://metacpan.org/release/DateTime-Locale"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-2.0-only"
depends="perl-dist-checkconflicts perl-file-sharedir perl-file-sharedir-install
	perl-ipc-system-simple perl-namespace-autoclean
	perl-params-validationcompiler"
checkdepends="perl-specio perl-test-fatal perl-test-file-sharedir
	perl-test-requires perl-test-warnings"
makedepends="perl-dev perl-cpan-meta-check perl-dist-checkconflicts"
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="31fb6c2a4d38350dea0160dc816c21ed2b97f11510fe9f545fe52530d00260b7bb64b1cab3a7e30531a1337aac2dd2983d0b3af09d24da0c4451498729d8777a  DateTime-Locale-1.25.tar.gz"