# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-menlo-legacy
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Menlo-Legacy
pkgver=1.9022
pkgrel=0
pkgdesc="Legacy internal and client support for Menlo"
url="https://metacpan.org/release/Menlo-Legacy/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-menlo make"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/Menlo-Legacy-$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="
3e554b77449b540dfb3f48fb3d3980bac591cabcde051d2e1a66a865d8717be7fd87975cee3af1848209b52828597bc719434cddc16a4da8ec63edb153056b0b  Menlo-Legacy-1.9022.tar.gz
"
