# Automatically generated by apkbuild-cpan, template 3 # Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-module-refresh #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Module-Refresh pkgver=0.18 pkgrel=2 pkgdesc="Refresh %INC files when updated on disk" url="https://metacpan.org/release/Module-Refresh/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev perl-path-class" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/B/BP/BPS/Module-Refresh-$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=" 9e950cab0119253123af1f1fe06a8f833a3019fab5e87b2d4602dcda8a1a9b94862158c3c64ceb070239d95b158c0809557049908f68f3f51c55b242d0804b2b Module-Refresh-0.18.tar.gz "