blob: 3e5a5187143460a181c9d1448dd305f1162a5db5 (
plain) (
tree)
|
|
# Contributor: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-re-engine-re2
_pkgreal=re-engine-RE2
_author=DGL
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.14
pkgrel=0
pkgdesc="RE2-based regex engine for Perl"
url="https://metacpan.org/pod/re::engine::RE2"
arch="all"
options="!check" # broken tests, I'm shocked
license="(Artistic-2.0 OR GPL-2.0-only) AND BSD-3-Clause"
depends="perl"
makedepends="perl-dev perl-extutils-cppguess"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz
fix-nullptr-retval.patch
"
builddir="$srcdir/re-engine-RE2-$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="8eab9d55185af7e5356e90c9e63495d65f4b4ace6aff3828f7178fab0104bcd8c7f58b52e49e1f24cd394183e9455b11c7a1ad2a13986c1c3ff6e11ebe5c0dbe re-engine-RE2-0.14.tar.gz
d5e2171796bdeb2ce1fe3e449e62c847546a7d927b972e4ac7d5e3a700419d6db779c0ff20c15f6108a7bca3de13823cdf320e32dbbd1de68c83bc6f1a7ab35d fix-nullptr-retval.patch"
|