# Automatically generated by apkbuild-cpan, template 4
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-list-keywords
pkgver=0.11
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=List-Keywords
pkgdesc="List utilities, implemented as keyword plugins"
url="https://metacpan.org/release/List-Keywords/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-xs-parse-keyword"
makedepends="perl-dev perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/List-Keywords-$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="
35a7a1d92926fa1ec367ca6c7a24907fc347c8852c2246ed57bc6c55fa5e5c51be8fb503fb40d22fcfbe9cbabe38cb9f3e74a59e1054a6f0abe0824416b24d3e  List-Keywords-0.11.tar.gz
"
