summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/perl-test2-tools-command/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-test2-tools-command/APKBUILD b/user/perl-test2-tools-command/APKBUILD
new file mode 100644
index 000000000..8241a30ec
--- /dev/null
+++ b/user/perl-test2-tools-command/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
+# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
+pkgname=perl-test2-tools-command
+_pkgreal=Test2-Tools-Command
+_author=JMATES
+_au=${_author%%"${_author#??}"}
+_a=${_author%%"${_author#?}"}
+pkgver=0.20
+pkgrel=0
+pkgdesc="Perl module for testing commands"
+url="https://metacpan.org/pod/Test2::Tools::Command"
+arch="noarch"
+license="BSD-3-Clause"
+depends="perl perl-test2-suite perl-file-chdir"
+makedepends="perl-module-build"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ perl Build.PL --destdir="$pkgdir" --prefix="/usr" --installdirs="vendor"
+ ./Build
+}
+
+check() {
+ ./Build test
+}
+
+package() {
+ ./Build install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="8b7396521fb533e331cdcd97cce2a19808ce91339b900f1743a2179769729b30f23d54ec91babb1d9ea5be291a90687520ef434d5deaf7f9771ad7e80eef94a1 Test2-Tools-Command-0.20.tar.gz"