# Automatically generated by apkbuild-cpan, template 3 # Contributor: Milan P. Stanić # Maintainer: Milan P. Stanić pkgname=perl-xs-parse-sublike #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=XS-Parse-Sublike pkgver=0.16 pkgrel=1 pkgdesc="XS functions to assist in parsing C-like syntax" url="https://metacpan.org/release/XS-Parse-Sublike/" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev perl-module-build" checkdepends="perl-test-fatal" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/XS-Parse-Sublike-$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=" 66615f291b498e132fc3513a18ae7723ad19e7daa5ff1e455d467235d7078d9d546281af38f5aa55a757b1cc8835fbf1e52944f0e580e7f135a574d625ef6613 XS-Parse-Sublike-0.16.tar.gz "