# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-module-build-using-pkgconfig
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Module-Build-Using-PkgConfig
pkgver=0.03
pkgrel=0
pkgdesc="Extend Module::Build with platform libraries provided by pkg-config"
url="https://metacpan.org/release/Module-Build-Using-PkgConfig/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-extutils-pkgconfig perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Module-Build-Using-PkgConfig-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
96e99f4b31c0f6324783bd7bc886f3f9d7eb566c4b3d91cd82fcbdc6f272c25ab61fce04091145a1a07260ce9f6cffd32b0f63348a211de635ac5e9db7c3082e  Module-Build-Using-PkgConfig-0.03.tar.gz
"
