aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-locale-codes/APKBUILD
blob: a1f71564d342a2e7d6896a7a7b7e23619d91591c (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
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-locale-codes
_pkgreal=Locale-Codes
pkgver=3.60
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 Artistic-1.0-Perl"
makedepends="perl-dev"
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="3994ea6073cbcc3118fba64f3a9d3bd82276b4fe9f0eccf9e457f052850a00f28e78df36e0306e4e7ba58bc1f9ad58b884c64d53e1c911b6e98b1f2875ef5906  Locale-Codes-3.60.tar.gz"