# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-ffi-platypus-lang-cpp-demangle-xs
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=FFI-Platypus-Lang-CPP-Demangle-XS
pkgver=0.03
pkgrel=5
pkgdesc="Demangle C++ symbols using the C++ ABI API"
url="https://metacpan.org/release/FFI-Platypus-Lang-CPP-Demangle-XS/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev perl-extutils-cppguess"
checkdepends="perl-test2-suite"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/FFI-Platypus-Lang-CPP-Demangle-XS-$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="8d4fe6d0d732805493e77940b80a9280776f4914c18430c6120673890ceda195959d4a15f6a984fb8d977b1322f2b0ed605bf8bbf5a35961f6a0d344a80c32fa  FFI-Platypus-Lang-CPP-Demangle-XS-0.03.tar.gz"
