# Contributor: Michael Pirogov # Maintainer: Michael Pirogov pkgname=perl-io-socket-timeout _pkgreal=IO-Socket-Timeout pkgver=0.32 pkgrel=2 pkgdesc="IO::Socket with read/write timeout" url="https://metacpan.org/release/IO-Socket-Timeout/" arch="noarch !armv7 !x86 !armhf" # test failures license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-perlio-via-timeout perl-test-tcp" makedepends="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"