1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/perl-ffi-checklib/APKBUILD
2020-03-21 20:23:41 +00:00

36 lines
1.2 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-ffi-checklib
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=FFI-CheckLib
pkgver=0.26
pkgrel=0
pkgdesc="Check that a library is available for FFI"
url="https://metacpan.org/release/FFI-CheckLib/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test2-suite"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/FFI-CheckLib-$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="5949aa0b7dfbf7401c1d916f003ab78762944b188ee66b769036656cc8f37ac12f523dbffdf6a24750b4ca64fd148efc91c6e36159a5c79c0781397060e8d558 FFI-CheckLib-0.26.tar.gz"