| 1 | # Automatically generated by apkbuild-cpan, template 2 |
| 2 | # Contributor: Timothy Legge <[email protected]> |
| 3 | # Maintainer: Timothy Legge <[email protected]> |
| 4 | pkgname=perl-locale-msgfmt |
| 5 | _pkgreal=Locale-Msgfmt |
| 6 | pkgver=0.15 |
| 7 | pkgrel=2 |
| 8 | pkgdesc="Compile .po files to .mo files" |
| 9 | url="https://metacpan.org/release/Locale-Msgfmt/" |
| 10 | arch="noarch" |
| 11 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 12 | depends="perl" |
| 13 | subpackages="$pkgname-doc" |
| 14 | source="https://cpan.metacpan.org/authors/id/A/AZ/AZAWAWI/Locale-Msgfmt-$pkgver.tar.gz" |
| 15 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 16 | |
| 17 | build() { |
| 18 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 19 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor |
| 20 | make |
| 21 | } |
| 22 | |
| 23 | check() { |
| 24 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 25 | make test |
| 26 | } |
| 27 | |
| 28 | package() { |
| 29 | make DESTDIR="$pkgdir" install |
| 30 | find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete |
| 31 | } |
| 32 | |
| 33 | sha512sums="4de0462c6c420f4d4026acd78838db72e997119688f758183cd182bf3595f4f732152193df995bb546e1dc8ddd5f7f509702c40fcab9d562ffe7876a571539c4 Locale-Msgfmt-0.15.tar.gz" |