diff options
Diffstat (limited to 'testing/perl-extutils-libbuilder')
-rw-r--r-- | testing/perl-extutils-libbuilder/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/perl-extutils-libbuilder/APKBUILD b/testing/perl-extutils-libbuilder/APKBUILD new file mode 100644 index 0000000000..f2d806468d --- /dev/null +++ b/testing/perl-extutils-libbuilder/APKBUILD @@ -0,0 +1,45 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-extutils-libbuilder +_pkgreal=ExtUtils-LibBuilder +pkgver=0.08 +pkgrel=0 +pkgdesc="Perl module for ExtUtils-LibBuilder" +url="http://search.cpan.org/dist/ExtUtils-LibBuilder/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="perl-module-build" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends perl-test-pod perl-test-pod-coverage" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/A/AM/AMBS/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + cd "$builddir" + if [ -e Build.PL ]; then + perl Build.PL installdirs=vendor || return 1 + else + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + fi +} + +build() { + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + ./Build && perl ./Build test +} + +package() { + cd "$builddir" + ./Build install destdir="$pkgdir" || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + + +md5sums="8ffe9e9a3c2f916f40dc4f6aed237d33 ExtUtils-LibBuilder-0.08.tar.gz" +sha256sums="c51171e06de53039f0bca1d97a6471ec37941ff59e8a3d1cb170ebdd2573b5d2 ExtUtils-LibBuilder-0.08.tar.gz" +sha512sums="c9cb95ff9ce3d30163e3e6e76adc03e164bddcef1fa58a068f6fc41e4be7289f06712457fba341244e6d37ec5976912920d44ac02ff6c9a2cde368b102e5133e ExtUtils-LibBuilder-0.08.tar.gz" |