| 1 | # Automatically generated by apkbuild-cpan, template 3 |
| 2 | # Contributor: Timothy Legge <[email protected]> |
| 3 | # Maintainer: Timothy Legge <[email protected]> |
| 4 | pkgname=perl-ffi-checklib |
| 5 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 6 | _pkgreal=FFI-CheckLib |
| 7 | pkgver=0.31 |
| 8 | pkgrel=1 |
| 9 | pkgdesc="Check that a library is available for FFI" |
| 10 | url="https://metacpan.org/release/FFI-CheckLib/" |
| 11 | arch="noarch" |
| 12 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 13 | depends="perl perl-file-which" |
| 14 | checkdepends="perl-test2-suite" |
| 15 | subpackages="$pkgname-doc" |
| 16 | source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/FFI-CheckLib-$pkgver.tar.gz" |
| 17 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 18 | |
| 19 | build() { |
| 20 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 21 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor |
| 22 | make |
| 23 | } |
| 24 | |
| 25 | check() { |
| 26 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 27 | make test |
| 28 | } |
| 29 | |
| 30 | package() { |
| 31 | make DESTDIR="$pkgdir" install |
| 32 | find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete |
| 33 | } |
| 34 | |
| 35 | sha512sums=" |
| 36 | 25dd359cbec5417baa2c3d6a1152fb8a50b9d1423f8adb1c9ebe4422aefaed6e3b9b73015c6960c5d69dbc151df50ecb5a8e365192a2108013b501433c52e1e2 FFI-CheckLib-0.31.tar.gz |
| 37 | " |