# Automatically generated by apkbuild-cpan, template 4
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-linux-epoll
pkgver=0.019
pkgrel=2
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Linux-Epoll
pkgdesc="O(1) multiplexing with Linux's epoll"
url="https://metacpan.org/release/Linux-Epoll/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/L/LE/LEONT/Linux-Epoll-$pkgver.tar.gz
	posix-strerror_r.patch
	"
builddir="$srcdir/$_pkgreal-$pkgver"

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

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
}

sha512sums="
260c1641527c39c9f90acb72f90b87329bfc0af5c064d56531edefbeedd96966d84d3eef8c67b5385d1d56575d639cf31752dff98d38a40a617addbeb8c9e5ec  Linux-Epoll-0.019.tar.gz
abd022c68bd297a3ee40edc89de4dedb9c6aaba3fd05cce6aaca1aaa6c7a33a3c03c7a6b64eda3d63cb57d7612b67d388294a34b23274b800339520cb36702a1  posix-strerror_r.patch
"
