summaryrefslogtreecommitdiff
path: root/user/perl-string-license/APKBUILD
blob: 18b6aed3f83d4afe054007a755daecaa82b84660 (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
37
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-string-license
_pkgreal=String-License
_author=JONASS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.0.9
pkgrel=0
pkgdesc="Perl module for detecting license statements in a text string"
url="https://metacpan.org/pod/String::License"
arch="noarch"
license="AGPL-3.0+"
depends="perl perl-array-intspan perl-feature-compat-class perl-list-someutils
	perl-log-any perl-namespace-clean perl-path-tiny perl-regexp-pattern
	perl-regexp-pattern-license"
checkdepends="perl-test2-suite perl-test-without-module"
makedepends=""
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="ec6d448122b8b03cbeadddff9886885522abec68fe68f63036c98aa76993db5844509c2170eecbab59de604fa25e6d391b99cce96d53210fca39d299474ebf7c  String-License-v0.0.9.tar.gz"