# 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.17 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-file-chdir perl-capture-tiny perl-file-which perl-ffi-checklib" 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="daa504cc2017affcdfee6b2b27f6ee496e371908924b5c44e440ae2eb70fa9a02fa438742446d7dc4a55ec441daa76273736d2b408ac8e1060f9cfad7143998d Alien-Build-2.17.tar.gz"