# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-toml
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=TOML
pkgver=0.97
pkgrel=1
pkgdesc="Parser for Tom's Obvious, Minimal Language."
url="https://metacpan.org/release/TOML/"
arch="noarch"
license="GPL-2.0-only"
depends="perl perl-toml-parser"
makedepends="perl-module-build-tiny perl-module-build"
checkdepends="perl-common-sense"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KA/KARUPA/TOML-$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="96eb23e6f889119b67579340b48ed4ff089bd6600aab0d06954516a95a5017f3c042f25c9df5957312c770e39206fe03e758262e7efc0bffebb183e6287cdfb4  TOML-0.97.tar.gz"
