summaryrefslogtreecommitdiff
path: root/user/perl-test-needs
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-06-23 04:04:34 -0500
committerKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-06-23 04:11:14 -0500
commit3ed02e4b1dd04ba095752e45f71f045f36a8acfc (patch)
tree1197e392ec96c16f52892185db7442f6c5a4c5dd /user/perl-test-needs
parentab9888176b7990b932a48771936bc2120c065b6f (diff)
downloadpackages-3ed02e4b1dd04ba095752e45f71f045f36a8acfc.tar.gz
packages-3ed02e4b1dd04ba095752e45f71f045f36a8acfc.tar.bz2
packages-3ed02e4b1dd04ba095752e45f71f045f36a8acfc.tar.xz
packages-3ed02e4b1dd04ba095752e45f71f045f36a8acfc.zip
user/perl-test-needs: required for perl-uri
Diffstat (limited to 'user/perl-test-needs')
-rw-r--r--user/perl-test-needs/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-test-needs/APKBUILD b/user/perl-test-needs/APKBUILD
new file mode 100644
index 000000000..d740dc8ac
--- /dev/null
+++ b/user/perl-test-needs/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=perl-test-needs
+pkgver=0.002005
+pkgrel=0
+pkgdesc="Perl module for skipping tests when modules aren't found"
+url="https://metacpan.org/pod/Test::Needs"
+arch="noarch"
+license="Artistic-2.0"
+depends="perl"
+makedepends="$depends"
+install=""
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/H/HA/HAARG/Test-Needs-$pkgver.tar.gz"
+sha512sums="b3023067d1f8726b0ae2162d0b3722193a3b56d12d5c207cf9558f1552ae8ab554773b843d00f1c481857c259fa869b8fdaf5a4838ab0768f38726ddec4130c6 Test-Needs-0.002005.tar.gz"
+builddir="$srcdir/Test-Needs-$pkgver"
+
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+