summaryrefslogtreecommitdiff
path: root/user/perl-re-engine-re2/APKBUILD
blob: 15c37ca1b6d66d3905f49a8a6ee215baee0609a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-re-engine-re2
_pkgreal=re-engine-RE2
_author=DGL
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.17
pkgrel=0
pkgdesc="RE2-based regex engine for Perl"
url="https://metacpan.org/pod/re::engine::RE2"
arch="all"
license="(Artistic-1.0 OR GPL-1.0+) 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"
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="cb2a904c38603f1441a6ee6d39e7409221cc429d6ace1d1e3bb6342dee1ee6bb04dd92df3f644ff2832ca323884a8adedd106fadbe098a7731ab8f8635aa62da  re-engine-RE2-0.17.tar.gz"