# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-exception-tiny
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Exception-Tiny
pkgver=0.2.1
pkgrel=1
pkgdesc="Perl module for Exception-Tiny"
url="https://metacpan.org/release/Exception-Tiny/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-class-accessor-lite perl-module-build perl-test-requires"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/Y/YA/YAPPO/Exception-Tiny-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-v$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="c72d3b576ecf022ff00e31e37fe2259724df908b6a09ea8310baa70aedd8a5779c3b5a180ade5ef25456280184b638c12585b408be5320545d0bbed6684338c1  Exception-Tiny-v0.2.1.tar.gz"
