# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-class-accessor-lite-lazy
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Class-Accessor-Lite-Lazy
pkgver=0.03
pkgrel=1
pkgdesc="Class::Accessor::Lite with lazy accessor feature"
url="https://metacpan.org/release/Class-Accessor-Lite-Lazy/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-class-accessor-lite"
makedepends="perl-module-build perl-test-fatal perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MO/MOTEMEN/Class-Accessor-Lite-Lazy-$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="e90c31134c084ae5fb3f78faf85523df6629f9487844667571158980e7b2cece3d055308aaa6e35ca8c6979f4574fa156ae3c0892fa28376fc0ee3a1f2c62671  Class-Accessor-Lite-Lazy-0.03.tar.gz"
