# Automatically generated by apkbuild-cpan, template 4 # Maintainer: Natanael Copa pkgname=perl-io-socket-ssl pkgver=2.089 pkgrel=0 #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=IO-Socket-SSL pkgdesc="Nearly transparent SSL encapsulation for IO::Socket::INET" url="https://metacpan.org/release/IO-Socket-SSL/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl ca-certificates perl-net-ssleay perl-mozilla-ca" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-$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 \ NO_PACKLIST=1 \ NO_PERLLOCAL=1 make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install } doc() { local file; find "$pkgdir" -name "*.pod" | while read -r file; do amove "${file#"$pkgdir"}" done default_doc } sha512sums=" 77cd4a7da3c34a741d8dbc52d5fe2efffee574c3f3078f24ceb2531a53133dc532109ade30700214ba6df26a0577a9f3ae76133fd8dc145be1fba58fc0b0f69c IO-Socket-SSL-2.089.tar.gz "