# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-test-regexp-pattern
_pkgreal=Test-Regexp-Pattern
_author=PERLANCAR
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.010
pkgrel=0
pkgdesc="Perl module for testing regular expression patterns"
url="https://metacpan.org/pod/Test::Regexp::Pattern"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-hash-defhash perl-regexp-pattern"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/Test-Regexp-Pattern-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="058e35d960b3cf31d1cd37da71825ced74d2d466245afdeba70dffa5e83eef1e0ed4e79b0e58752eaee7063b0aac349010a7913e688de8d11823a445cbcf4a22  Test-Regexp-Pattern-0.010.tar.gz"