APKBUILD 1.28 KB
Newer Older
1
2
3
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-datetime-locale
Síle Ekaterin Aman's avatar
Síle Ekaterin Aman committed
4
5
6
7
_pkgreal=DateTime-Locale
_author=DROLSKY
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
8
pkgver=1.26
9
10
11
12
13
14
15
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
16
	perl-params-validationcompiler perl"
17
18
19
20
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"
Síle Ekaterin Aman's avatar
Síle Ekaterin Aman committed
21
22
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

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
}

38
sha512sums="2b664f931abf4c81b6ff80752b3eb03c7d71aa6cd11da0e925a157ea0838234bc1ccb243ddd129d65f7f47e5e739176591bfe1c7ed2ec4d1476e56bdbe66c1b1  DateTime-Locale-1.26.tar.gz"