# Automatically generated by apkbuild-cpan, template 2 # Contributor: # Maintainer: Leonardo Arena pkgname=perl-devel-checklib _pkgname=Devel-CheckLib pkgver=1.16 pkgrel=0 pkgdesc="Check if a library is installed" url="https://metacpan.org/dist/Devel-CheckLib" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-io-captureoutput" checkdepends="perl-capture-tiny" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/M/MA/MATTN/Devel-CheckLib-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } sha512sums=" 919da046cdd1f48e0ccd8a7734a98f3144c0005c8303b02b43aeedcd2cfc148c78f502f26a80ea2612279e2becf4948b408d8cbd4b7cc514519c5954ae4139cb Devel-CheckLib-1.16.tar.gz "