# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=perl-ppix-quotelike
pkgver=0.023
pkgrel=1
pkgdesc="Parse Perl string literals and string-literal-like things"
url="https://metacpan.org/pod/PPIx::QuoteLike"
arch="noarch"
license="GPL-1.0-only OR Artistic-1.0-Perl"
depends="perl-ppi"
makedepends="perl-dev perl-ppix-regexp perl-readonly"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/W/WY/WYANT/PPIx-QuoteLike-$pkgver.tar.gz"
builddir="$srcdir/PPIx-QuoteLike-$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="
63a14b7d3337162ba2a4ac60195a45eb0a00084d77eb07fa98bd3c848e098279d7ad0f2dc08694dea40fe23006e2e0ded970d602b2a940009d29d47c604c45cd  PPIx-QuoteLike-0.023.tar.gz
"
