# Automatically generated by apkbuild-cpan, template 3 # Contributor: Milan P. Stanić # Maintainer: Milan P. Stanić pkgname=perl-xs-parse-keyword #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=XS-Parse-Keyword pkgver=0.36 pkgrel=0 pkgdesc="XS functions to assist in parsing keyword syntax" url="https://metacpan.org/release/XS-Parse-Keyword/" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" options="!check" # fails on builders but pass with 'abuild -r' locally depends="perl" makedepends="perl-dev perl-module-build perl-extutils-cchecker perl-module-build" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/XS-Parse-Keyword-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') perl Build.PL --installdirs=vendor ./Build } check() { ./Build test } package() { ./Build install --destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums=" 243965d6ec91e4303524b5b4a973f197d0831a62d8a257f114e803bb95145eff40c806dc32476ae975f38c0ee23bc0bd89f7bd57939f3918b8927ccbbb94f2ca XS-Parse-Keyword-0.36.tar.gz "