summaryrefslogtreecommitdiff
path: root/user/perl-datetime-locale/APKBUILD
blob: 571e4aaf0413988d9dff0aec3fd15f7e63b5e9b1 (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
39
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-datetime-locale
_pkgreal=DateTime-Locale
_author=DROLSKY
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.35
pkgrel=0
pkgdesc="Locale support for Perl DateTime"
url="https://metacpan.org/release/DateTime-Locale"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl-dist-checkconflicts perl-file-sharedir perl-file-sharedir-install
	perl-ipc-system-simple perl-namespace-autoclean
	perl-params-validationcompiler perl"
checkdepends="perl-specio perl-test-fatal perl-test-file-sharedir
	perl-test-requires perl-test-warnings perl-test2-suite
	perl-test2-plugin-nowarnings"
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="74dc707b499e70d5ec74b6b0c907b184eaba775eeae49348b5f14da960ef9d6d4ed47288755f2d3da817b920690445681e09e809a49702dab5e55ecd4ae4c39f  DateTime-Locale-1.35.tar.gz"