# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-toml-parser
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=TOML-Parser
pkgver=0.91
pkgrel=1
pkgdesc="simple toml parser"
url="https://metacpan.org/release/TOML-Parser/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-types-serialiser"
makedepends="perl-module-build-tiny perl-module-build"
checkdepends="perl-test-deep-fuzzy"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KA/KARUPA/TOML-Parser-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

check() {
	./Build -Iblib test
}

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

sha512sums="5015928ee09a7a0fd08f988bb0bf7399532c5b02c17843bd213033e81ad339f683918350dab43a26582678464db8c3b24fa45f1a2b050e12637dc9cf2be0a6b9  TOML-Parser-0.91.tar.gz"
