summaryrefslogtreecommitdiff
path: root/user/perl-test-tcp
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 02:14:05 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 02:14:05 +0000
commitea19c7d08e93c7bdf50321fe3537cbc6cf8ac27a (patch)
tree693486188ee30e778d454bffc06ec87962656262 /user/perl-test-tcp
parenta8a0039093efc58193b73228ad83c8b1e0ec1e76 (diff)
downloadpackages-ea19c7d08e93c7bdf50321fe3537cbc6cf8ac27a.tar.gz
packages-ea19c7d08e93c7bdf50321fe3537cbc6cf8ac27a.tar.bz2
packages-ea19c7d08e93c7bdf50321fe3537cbc6cf8ac27a.tar.xz
packages-ea19c7d08e93c7bdf50321fe3537cbc6cf8ac27a.zip
user/perl-test-tcp: new package
Diffstat (limited to 'user/perl-test-tcp')
-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"