summaryrefslogtreecommitdiff
path: root/user/perl-regexp-pattern-license/APKBUILD
blob: 0c53ce623c1bf393e5eeef2703cbf99f8d6cfdb4 (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
35
36
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-regexp-pattern-license
_pkgreal=Regexp-Pattern-License
_author=JONASS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=3.9.4
pkgrel=0
pkgdesc="Perl module for regex-matching legal licenses"
url="https://metacpan.org/pod/Regexp::Pattern::License"
arch="noarch"
license="GPL-3.0+"
depends="perl perl-re-engine-re2 perl-regexp-pattern perl-strictures
	perl-test-regexp-pattern perl-try-tiny"
checkdepends="perl-test-requires perl-test2-suite perl-test-without-module"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-v$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="54ada9a5806a88a3bdc621c8c546898bb44e6392e37415335d5a426000936734611b608b89caed8835a0eb64a996f6a4f3465866a702e8e0dc943a6d4ed6e3de  Regexp-Pattern-License-v3.9.4.tar.gz"