summaryrefslogblamecommitdiff
path: root/user/perl-datetime-locale/APKBUILD
blob: 829b21dcf6964764eb1abf906cd171822418aa23 (plain) (tree)
1
2
3
4
5



                                                                   
           































                                                                                         
                                                                                                                                                                          
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-datetime-locale
_pkgname=DateTime-Locale
pkgver=1.24
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/D/DR/DROLSKY/DateTime-Locale-$pkgver.tar.gz"
builddir="$srcdir/DateTime-Locale-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="0510df7e69bc7e50cb301510224cb084bf9d75f072ceb631d7c94ab07a6f7c11b64247c492054c0be3840bf5b13b6981f09426fd0b8e20a48901308cc0b5ffdb  DateTime-Locale-1.24.tar.gz"