aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-datetime-locale/APKBUILD
blob: 577ec3352ebddb2f3bb68af660943d02571c1b27 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-datetime-locale
pkgver=1.28
pkgrel=1
pkgdesc="DateTime::Locale perl module"
url="https://search.cpan.org/dist/DateTime-Locale"
arch="noarch"
license="Artistic-1.0-Perl GPL-1.0-or-later"
depends="perl perl-cpan-meta-check perl-dist-checkconflicts perl-file-sharedir perl-file-sharedir-install
	perl-list-moreutils perl-namespace-autoclean perl-params-validate perl-params-validationcompiler
	perl-scalar-list-utils perl-test-fatal perl-test-requires perl-test-warnings"
checkdepends="perl-test-file-sharedir perl-ipc-system-simple"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Locale-$pkgver.tar.gz"

builddir="$srcdir"/DateTime-Locale-$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="5c6349e9115bd8d6dba0b33809f9d8544f0d40802bbf0111005fda4990d3d815b236c44f60a1b5fe8d28d3f2f19343627df2d7ac87158be07e7de4f05c19a763  DateTime-Locale-1.28.tar.gz"