| 1 | # Automatically generated by apkbuild-cpan, template 2 |
| 2 | # Contributor: Timothy Legge <[email protected]> |
| 3 | # Maintainer: Timothy Legge <[email protected]> |
| 4 | pkgname=perl-email-address-xs |
| 5 | _pkgreal=Email-Address-XS |
| 6 | pkgver=1.05 |
| 7 | pkgrel=4 |
| 8 | pkgdesc="Parse and format RFC 5322 email addresses and groups" |
| 9 | url="https://metacpan.org/release/Email-Address-XS/" |
| 10 | arch="all" |
| 11 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 12 | makedepends="perl-dev" |
| 13 | subpackages="$pkgname-doc" |
| 14 | source="https://cpan.metacpan.org/authors/id/P/PA/PALI/Email-Address-XS-$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=" |
| 34 | 129841de4e945f935529e4b67a325b78c1aa9ca2f7623078450ed4d3516dffa4791a1f5ea37c8647ee15677414761475593d17073171623ea322023c9cef44eb Email-Address-XS-1.05.tar.gz |
| 35 | " |