diff options
Diffstat (limited to 'testing/perl-module-scandeps/APKBUILD')
-rw-r--r-- | testing/perl-module-scandeps/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-module-scandeps/APKBUILD b/testing/perl-module-scandeps/APKBUILD new file mode 100644 index 0000000000..d2a6d13885 --- /dev/null +++ b/testing/perl-module-scandeps/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: +# Maintainer: +pkgname=perl-module-scandeps +_pkgreal=Module-ScanDeps +pkgver=1.19 +pkgrel=0 +pkgdesc="Recursively scan Perl code for dependencies" +url="http://search.cpan.org/dist/Module-ScanDeps/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="perl-test-requires " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/$_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 && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="ea2545dbf46bae4cc43d9d07cad77b96 Module-ScanDeps-1.19.tar.gz" +sha256sums="be77c31327d88382bbae4d11e6209d3222c848bd3ade8d3dcaae3dae748a66cb Module-ScanDeps-1.19.tar.gz" +sha512sums="627d7d8a3887a6be666d48e72e371db1fc1637c66d60da6fa797165e3020b8b2cfa0576f1520694409cb66266faa5277e12e558bcfd75b397075962b19fb0bbf Module-ScanDeps-1.19.tar.gz" |