summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/perl-string-license/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/user/perl-string-license/APKBUILD b/user/perl-string-license/APKBUILD
new file mode 100644
index 000000000..c5308d8af
--- /dev/null
+++ b/user/perl-string-license/APKBUILD
@@ -0,0 +1,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.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"