# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-file-slurper #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=File-Slurper pkgver=0.014 pkgrel=1 pkgdesc="A simple, sane and efficient module to slurp a file" url="https://metacpan.org/release/File-Slurper/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev" checkdepends="perl-test-warnings" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/L/LE/LEONT/File-Slurper-$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=" 45474865b8c4a360ad04423c510c62f2a796081544499cf9ed335ffefe9d4087a844a1f988dfbd21b38237942eeead045923121e9786607c5270520b2b0af577 File-Slurper-0.014.tar.gz "