# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Stuart Cardall pkgname=perl-module-scandeps _pkgreal=Module-ScanDeps pkgver=1.24 pkgrel=0 pkgdesc="Recursively scan Perl code for dependencies" url="http://search.cpan.org/dist/Module-ScanDeps/" arch="noarch" license="GPL PerlArtistic" cpanmakedepends="perl-test-requires" makedepends="perl-dev $cpanmakedepends perl-test-pod" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_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 } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { cd "$builddir" make test } sha512sums="7f3d9821aa863d8ebc78fb5fb3c7172ce133169ec54ed91b90e05ba50654b4bd0282b3a760adfc8b6bd553dda4116dbf51972bb2af94b59f6f04daeba996e889 Module-ScanDeps-1.24.tar.gz"