# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=perl-types-serialiser
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Types-Serialiser
pkgver=1.01
pkgrel=1
pkgdesc="Perl module for Types-Serialiser"
url="https://metacpan.org/release/Types-Serialiser/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-common-sense"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/Types-Serialiser-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

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

sha512sums="419b24cae85fba045de2f4593e1d17784f2016d5f9cd9ea96d23bbeaa86c1c6b866875871a787cacba1299616d371cc8806760e4c53e4f635deec4bc28fa81b5  Types-Serialiser-1.01.tar.gz"
