# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timothy Legge # Maintainer: Timothy Legge pkgname=perl-locale-codes #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Locale-Codes pkgver=3.65 pkgrel=1 pkgdesc="a distribution of modules to handle locale codes" url="https://metacpan.org/release/Locale-Codes/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev" checkdepends="perl-test-inter" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/S/SB/SBECK/Locale-Codes-$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 make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="501c63b54af4058ff09613db2f8bca2d693bb09129ac62556e14c4c8f20266016d98ab159d543cd18373c8ae798427ee0f5f740c8b61dd39769726dd921f864a Locale-Codes-3.65.tar.gz"