# Automatically generated by apkbuild-cpan, template 3 # Contributor: Carlo Landmeter # Maintainer: Francesco Colista pkgname=perl-io-gzip #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=PerlIO-gzip pkgver=0.20 pkgrel=9 pkgdesc="Perl extension to provide a PerlIO layer to gzip/gunzip" url="https://metacpan.org/release/PerlIO-gzip/" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev zlib-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/N/NW/NWCLARK/PerlIO-gzip-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="b24e8fa99cbcbaf07feabfc09cefc55a10c1dce59b495b59343ff5217536f7108c92f462751e70242e6567be32e69a0cc88a2e66325e926174a64042d4b87966 PerlIO-gzip-0.20.tar.gz"