mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 04:26:43 +02:00
48 lines
1.5 KiB
Text
48 lines
1.5 KiB
Text
# Automatically generated by apkbuild-cpan, template 4
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=perl-datetime-locale
|
|
pkgver=1.45
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=DateTime-Locale
|
|
pkgdesc="Localization support for DateTime.pm"
|
|
url="https://metacpan.org/release/DateTime-Locale/"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="
|
|
perl perl-dist-checkconflicts perl-file-sharedir perl-namespace-autoclean
|
|
perl-params-validationcompiler perl-specio
|
|
"
|
|
makedepends="perl-dist-checkconflicts perl-file-sharedir-install"
|
|
checkdepends="
|
|
perl-test-file-sharedir perl-ipc-system-simple perl-path-tiny perl-test2-plugin-nowarnings
|
|
perl-test-simple perl-cpan-meta-check
|
|
"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-Locale-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
|
INSTALLDIRS=vendor \
|
|
NO_PACKLIST=1 \
|
|
NO_PERLLOCAL=1
|
|
make
|
|
}
|
|
|
|
check() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# These just seem to be examples, and are available as man pages
|
|
rm -v "$pkgdir"/usr/share/perl5/vendor_perl/DateTime/Locale/*.pod
|
|
}
|
|
|
|
sha512sums="
|
|
d65d188c2fb3711c66357478059003f767c2b5913316b194d8a3e2b8dbc98d34c632f750e21a20eec410cff8125f029131d7b039c9406616500c2f36afdf7516 DateTime-Locale-1.45.tar.gz
|
|
"
|