# Automatically generated by apkbuild-cpan, template 2 # Contributor: Nick Andrew # Maintainer: Nick Andrew pkgname=perl-gearman _pkgreal=Gearman pkgver=2.004.015 pkgrel=2 pkgdesc="Client and worker libraries for gearman job dispatch dispatch. Server is in separate package." url="https://metacpan.org/release/Gearman" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-list-moreutils perl-string-crc32 perl-io-socket-ssl" makedepends="perl-file-which perl-test-tcp perl-test-timer perl-proc-guard perl-test-exception" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/P/PA/PALIK/Gearman-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$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="020eb3ca55f8ef33f546f60c6cb8c70d2dbbae21f11e0c165443569805040df7b2a0c89bec9de1d3c7733c3edf25bffa8faf69857c29f8b2371b5e06f5b0fd11 Gearman-2.004.015.tar.gz"