# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Francesco Colista pkgname=perl-devel-hide _pkgreal=Devel-Hide pkgver=0.0010 pkgrel=1 pkgdesc="Forces the unavailability of specified Perl modules (for testing)" url="https://metacpan.org/release/Devel-Hide/" arch="noarch" license="GPL PerlArtistic" cpandepends="" cpanmakedepends="perl-test-pod perl-test-pod-coverage" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/F/FE/FERREIRA/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` make } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="50bd9daf86239963e501936f09c0ee4b19be65deef22774910813a2502a2f60a6efcf7fbd586f2ea09c60ca1b77aa418a08043151f5a0d9915b7d881d66013c9 Devel-Hide-0.0010.tar.gz"