# Automatically generated by apkbuild-cpan, template 4
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-ffi-platypus-type-enum
pkgver=0.06
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=FFI-Platypus-Type-Enum
pkgdesc="Custom platypus type for dealing with C enumerated types"
url="https://metacpan.org/release/FFI-Platypus-Type-Enum/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-ref-util"
checkdepends="perl-ffi-platypus perl-test2-suite"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/FFI-Platypus-Type-Enum-$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 \
		NO_PACKLIST=1 \
		NO_PERLLOCAL=1
	make
}

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

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
592b609263cba5cfba578e125ebe91d1cbc2f2a4ff9cba2dad36fc0531f6f661bb13f74900489f924e191dc9e774b8e441d4a57d55f17e688e51b5c6d8ae434c  FFI-Platypus-Type-Enum-0.06.tar.gz
"
