# Automatically generated by apkbuild-cpan, template 4
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=perl-xs-parse-sublike
pkgver=0.23
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=XS-Parse-Sublike
pkgdesc="XS functions to assist in parsing C<sub>-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 perl-file-sharedir"
makedepends="perl-dev perl-module-build"
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 \
		--create_packlist=0
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
}

sha512sums="
094fcd3e67dc44176a995aad8ea5a67d4b6dde73f546636654f1d2c425f0f0bfc8a0053b134022a936660daf4fb5976c08ed665d04690036b062d7cacba28814  XS-Parse-Sublike-0.23.tar.gz
"
