summaryrefslogtreecommitdiff
path: root/user/perl-commandable/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-commandable/APKBUILD')
-rw-r--r--user/perl-commandable/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/user/perl-commandable/APKBUILD b/user/perl-commandable/APKBUILD
new file mode 100644
index 000000000..d688263c8
--- /dev/null
+++ b/user/perl-commandable/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
+# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
+pkgname=perl-commandable
+_pkgreal=Commandable
+_author=PEVANS
+_au=${_author%%"${_author#??}"}
+_a=${_author%%"${_author#?}"}
+pkgver=0.11
+pkgrel=0
+pkgdesc="Represents one invocation of a CLI command"
+url="https://metacpan.org/pod/Commandable"
+arch="noarch"
+license="GPL-1.0+ OR Artistic-1.0-Perl"
+depends="perl"
+checkdepends="perl-test-fatal perl-test-warnings perl-test2-suite
+ perl-test-nowarnings"
+makedepends="perl-module-build perl-module-pluggable"
+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="cc73431bc58f0c0adc957532c331d34bf9da741e0c290855fe946219dad44bd55f2d9ba018b3d61f35ad43b87012906b0702ab5a0cc1c86cee266f0a276bab7d Commandable-0.11.tar.gz"