summaryrefslogtreecommitdiff
path: root/user/perl-string-license/APKBUILD
diff options
context:
space:
mode:
authorSíle Ekaterin Liszka <sheila@vulpine.house>2023-03-13 06:52:28 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2023-03-31 05:35:55 +0000
commit66c9fb210788a4421333e3afac7be5034fcfe40b (patch)
treec067fbcdc4d4e1458621a2e74bb299724568348b /user/perl-string-license/APKBUILD
parent0c47e2696f36ac63ea44b6acc649e4be9155df49 (diff)
downloadpackages-66c9fb210788a4421333e3afac7be5034fcfe40b.tar.gz
packages-66c9fb210788a4421333e3afac7be5034fcfe40b.tar.bz2
packages-66c9fb210788a4421333e3afac7be5034fcfe40b.tar.xz
packages-66c9fb210788a4421333e3afac7be5034fcfe40b.zip
user/perl-string-license: new package
Diffstat (limited to 'user/perl-string-license/APKBUILD')
-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"