diff options
| author | Michael Pirogov <vbnet.ru@gmail.com> | 2019-12-11 16:19:33 +0300 |
|---|---|---|
| committer | Milan P. Stanić <mps@arvanta.net> | 2019-12-11 15:57:41 +0100 |
| commit | 5144c8b8cb5bc92a3a4151dfe930dfcddbb3bcad (patch) | |
| tree | 4c432f153afc8c7dbe35a311e9d2f2982c3c8203 /testing/perl-perlio-via-timeout | |
| parent | e700e950d083cec2939dfe315c70de75733cd3f2 (diff) | |
| download | aports-5144c8b8cb5bc92a3a4151dfe930dfcddbb3bcad.tar.bz2 aports-5144c8b8cb5bc92a3a4151dfe930dfcddbb3bcad.tar.xz | |
testing/perl-perlio-via-timeout: new aport
Diffstat (limited to 'testing/perl-perlio-via-timeout')
| -rw-r--r-- | testing/perl-perlio-via-timeout/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/perl-perlio-via-timeout/APKBUILD b/testing/perl-perlio-via-timeout/APKBUILD new file mode 100644 index 0000000000..4e59e77bb4 --- /dev/null +++ b/testing/perl-perlio-via-timeout/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Michael Pirogov <vbnet.ru@gmail.com> +# Maintainer: Michael Pirogov <vbnet.ru@gmail.com> +pkgname=perl-perlio-via-timeout +_pkgreal=PerlIO-via-Timeout +pkgver=0.32 +pkgrel=0 +pkgdesc="a PerlIO layer that adds read & write timeout to a handle" +url="https://metacpan.org/release/PerlIO-via-Timeout/" +arch="noarch" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +makedepends="perl-dev perl-test-tcp perl-module-build-tiny" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/D/DA/DAMS/PerlIO-via-Timeout-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +package() { + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="52200c0d19da7a19b9b328473b0e7b57a1a3102fd3ace947af8fef8f670aaebe37811daaa2e2b6cf2f6397855a4cfb2424af053322146a8acefd71e1bb30f681 PerlIO-via-Timeout-0.32.tar.gz" |
