# Automatically generated by apkbuild-cpan, template 4
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=perl-object-pad
pkgver=0.813
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Object-Pad
pkgdesc="simple syntax for lexical field-based objects"
url="https://metacpan.org/release/Object-Pad/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-xs-parse-sublike perl-xs-parse-keyword perl-file-sharedir"
makedepends="perl-dev perl-module-build"
checkdepends="perl-data-dump"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Object-Pad-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
}

sha512sums="
3a40263a5b12cf73675dd1d5981a1e9fdc8048baaefd0ee47c100dfe55e91a3a9ff6d26937b59567a9e72d3bb8d7e02507bb474cf5d9b8afe7f9bce1cef7b12b  Object-Pad-0.813.tar.gz
"
