aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-locale-msgfmt/APKBUILD
blob: afec15401ad64c4c2922809997f18c567fd3974e (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-msgfmt
_pkgreal=Locale-Msgfmt
pkgver=0.15
pkgrel=0
pkgdesc="Compile .po files to .mo files"
url="https://metacpan.org/release/Locale-Msgfmt/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AZ/AZAWAWI/Locale-Msgfmt-$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="4de0462c6c420f4d4026acd78838db72e997119688f758183cd182bf3595f4f732152193df995bb546e1dc8ddd5f7f509702c40fcab9d562ffe7876a571539c4  Locale-Msgfmt-0.15.tar.gz"