# Automatically generated by apkbuild-cpan, template 2 # Contributor: Nick Andrew # Maintainer: Nick Andrew pkgname=perl-anyevent _pkgname=AnyEvent pkgver=7.16 pkgrel=0 pkgdesc="Framework for event-based programming" url="https://metacpan.org/release/AnyEvent" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" makedepends="perl-dev openssl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/AnyEvent-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } sha512sums="27c794d5e78a7c359b0e48ef698be4ef56787b54f457d9397795abade9d55460f8acc086f8becabb37f1195d014cd441e3e9783dcca2e1c550c64453960d4cd4 AnyEvent-7.16.tar.gz"