aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-locale-codes/APKBUILD
blob: a3cd537f1822ab1579b7b2748b8177b56f3bbef2 (plain)
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
34
35
36
37
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-locale-codes
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Locale-Codes
pkgver=3.70
pkgrel=0
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"
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="
9ea9d91ee2af861033f7abfbbfa97fc9bf0aab6de851286bbb12c2a8ee3af846ae1f5b4b128a23efcebe06fe87524ab72c8cc07afface401687bdc07646c9c4c  Locale-Codes-3.70.tar.gz
"