diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 14:23:25 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 14:39:07 +0000 |
commit | e62841b5cb2e1d0fa68cc0d395cdeb767f06e5d4 (patch) | |
tree | 81567ecafae0cf50d35cf05e51d9474423b496d9 /community/perl-extutils-libbuilder/APKBUILD | |
parent | cb4ce5b66442d6ccaa29dc2f2b3c33dad91f3ae2 (diff) | |
download | aports-e62841b5cb2e1d0fa68cc0d395cdeb767f06e5d4.tar.bz2 aports-e62841b5cb2e1d0fa68cc0d395cdeb767f06e5d4.tar.xz |
community/perl-extutils-libbuilder: moved from testing
Diffstat (limited to 'community/perl-extutils-libbuilder/APKBUILD')
-rw-r--r-- | community/perl-extutils-libbuilder/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/community/perl-extutils-libbuilder/APKBUILD b/community/perl-extutils-libbuilder/APKBUILD new file mode 100644 index 0000000000..f2d806468d --- /dev/null +++ b/community/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" |