# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-io-async-ssl
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=IO-Async-SSL
pkgver=0.25
pkgrel=0
pkgdesc="Use SSL/TLS with IO::Async"
url="https://metacpan.org/release/IO-Async-SSL/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-future perl-io-async perl-io-socket-ssl"
makedepends="perl-module-build"
checkdepends="perl-test-identity socat"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/IO-Async-SSL-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
1f9fb9442d4d4539efb4c35df8a2e6bc87543a05325d16c3efa57a63ef0d4a15c058ef93439095b2ff5d8c370f1d6500c3d109457cc23c110a2e0c08739e59eb  IO-Async-SSL-0.25.tar.gz
"
