summaryrefslogblamecommitdiff
path: root/user/perl-string-license/APKBUILD
blob: c5308d8afa6c4357329baab2952a9ed9ddcd3a95 (plain) (tree)




































                                                                                                                                                                           
# 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.4
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="edb29907dcab3a762f9b694dc4de82f3f6adabe4fa6cfa5c01e6b844f91e3dc6feb47fb85e845dcd05d1a0e5df32c9739ac4991d44243edc7aeaae4cf2a5314e  String-License-v0.0.4.tar.gz"