diff options
author | Michael Pirogov <vbnet.ru@gmail.com> | 2019-12-11 16:22:52 +0300 |
---|---|---|
committer | Milan P. Stanić <mps@arvanta.net> | 2019-12-11 16:20:16 +0100 |
commit | 9c43ccd50240f027e03d8aebc021725d97f9c230 (patch) | |
tree | 611ab72611bcae9280276784bde55054adf4338d /testing/perl-io-socket-timeout | |
parent | 5144c8b8cb5bc92a3a4151dfe930dfcddbb3bcad (diff) | |
download | aports-9c43ccd50240f027e03d8aebc021725d97f9c230.tar.bz2 aports-9c43ccd50240f027e03d8aebc021725d97f9c230.tar.xz |
testing/perl-io-socket-timeout: new aport
Diffstat (limited to 'testing/perl-io-socket-timeout')
-rw-r--r-- | testing/perl-io-socket-timeout/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/perl-io-socket-timeout/APKBUILD b/testing/perl-io-socket-timeout/APKBUILD new file mode 100644 index 0000000000..9ef7a03876 --- /dev/null +++ b/testing/perl-io-socket-timeout/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Michael Pirogov <vbnet.ru@gmail.com> +# Maintainer: Michael Pirogov <vbnet.ru@gmail.com> + +pkgname=perl-io-socket-timeout +_pkgreal=IO-Socket-Timeout +pkgver=0.32 +pkgrel=0 +pkgdesc="IO::Socket with read/write timeout" +url="https://metacpan.org/release/IO-Socket-Timeout/" +arch="noarch" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +depends="perl-perlio-via-timeout perl-test-tcp" +makedepends="perl-dev perl-module-build-tiny" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/D/DA/DAMS/IO-Socket-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="013ad036c796880ab464b18f642260609095cf40c74f3127abaf3c8a596ba8ee85746129dc84d2d1e6f1bbfc86d75969e99c5a9b67736fa3e5e8bc7f5ddf83a6 IO-Socket-Timeout-0.32.tar.gz" |