# Contributor: Wen Heping # Maintainer: Wen Heping pkgname=perl-module-path pkgver=0.19 pkgrel=0 # _pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Module-Path pkgdesc="get the full path to a locally installed module" url="https://metacpan.org/release/Module-Path/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" checkdepends="perl-devel-findperl" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/N/NE/NEILB/Module-Path-$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 \ NO_PACKLIST=1 \ NO_PERLLOCAL=1 make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install } sha512sums=" fa71c67f6e8daab9df29a6ced09c557980873ea73ed6e9c28081d10009d153767adc24ddd6acbde0c1423ffbf9cc92f8ab5db29203b73a79643dfc98fc2b2935 Module-Path-0.19.tar.gz "