| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Contributor: Celeste <[email protected]> |
| 3 | # Maintainer: |
| 4 | pkgname=perl-io-async-loop-epoll |
| 5 | pkgver=0.23 |
| 6 | pkgrel=1 |
| 7 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 8 | _pkgreal=IO-Async-Loop-Epoll |
| 9 | pkgdesc="Use IO::Async with Linux::Epoll" |
| 10 | url="https://metacpan.org/release/IO-Async-Loop-Epoll/" |
| 11 | arch="noarch" |
| 12 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 13 | depends="perl perl-io-async perl-linux-epoll perl-struct-dumb" |
| 14 | makedepends="perl-module-build" |
| 15 | checkdepends="perl-io-async-looptests" |
| 16 | subpackages="$pkgname-doc" |
| 17 | source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/IO-Async-Loop-Epoll-$pkgver.tar.gz" |
| 18 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 19 | |
| 20 | build() { |
| 21 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 22 | perl Build.PL \ |
| 23 | --installdirs=vendor \ |
| 24 | --create_packlist=0 |
| 25 | ./Build |
| 26 | } |
| 27 | |
| 28 | check() { |
| 29 | ./Build test |
| 30 | } |
| 31 | |
| 32 | package() { |
| 33 | ./Build install --destdir="$pkgdir" |
| 34 | } |
| 35 | |
| 36 | sha512sums=" |
| 37 | 383b467cb7c698c5187181f6519f6584c603f62701a82ef57500867df885ee2f3e35956a5c4142630e841bcda4ff8fafe64d51dbc77dffe103f10be6fcf7fba2 IO-Async-Loop-Epoll-0.23.tar.gz |
| 38 | " |