summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/perl-test-tcp/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-test-tcp/APKBUILD b/user/perl-test-tcp/APKBUILD
new file mode 100644
index 000000000..1be5ffa02
--- /dev/null
+++ b/user/perl-test-tcp/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-test-tcp
+_pkgname=Test-TCP
+pkgver=2.19
+pkgrel=0
+pkgdesc="Testing library for Perl code using TCP"
+url="https://metacpan.org/release/Test-TCP"
+arch="noarch"
+license="Artistic-1.0-Perl OR GPL-2.0-only"
+depends="perl-test-sharedfork"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/Test-TCP-$pkgver.tar.gz"
+builddir="$srcdir/Test-TCP-$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
+}
+
+sha512sums="1de76f5dc456697d8ea0799bb60d858b0e1c0089f066d1a446c46708e6cb3441849e264526082a066c31519ded4731cde9310b8a493f571ed670c2fbb60a3e85 Test-TCP-2.19.tar.gz"