# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timothy Legge # Maintainer: Timothy Legge pkgname=perl-alien-build #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Alien-Build pkgver=2.21 pkgrel=0 pkgdesc="Build external dependencies for use in CPAN" url="https://metacpan.org/release/Alien-Build/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-path-tiny perl-ffi-checklib perl-file-which perl-capture-tiny perl-file-chdir" makedepends="perl-dev perl-file-which" checkdepends="perl-test2-suite" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Build-$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="f78ffbb8d7198707c7bebbf281daa53fb701dd5b35417939020c95c20e2805333998ed2011c8c6049a09516bbe4d228facd827fcbbad660474c0195b99905108 Alien-Build-2.21.tar.gz"