diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-07-12 08:53:46 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-07-12 08:53:46 +0000 |
commit | 72016ebb30f7cac10ba677332cb75dccff81fff1 (patch) | |
tree | 9b469c02d1b6ef4cdafc9a7d48849f401a27e55e /testing/perl-cpan-meta-check | |
parent | 87bd327e4f75581b2bc367c044e184e9b8aa103d (diff) | |
download | aports-72016ebb30f7cac10ba677332cb75dccff81fff1.tar.bz2 aports-72016ebb30f7cac10ba677332cb75dccff81fff1.tar.xz |
testing/perl-cpan-meta-check: new aport
Diffstat (limited to 'testing/perl-cpan-meta-check')
-rw-r--r-- | testing/perl-cpan-meta-check/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/perl-cpan-meta-check/APKBUILD b/testing/perl-cpan-meta-check/APKBUILD new file mode 100644 index 0000000000..d38fd1534d --- /dev/null +++ b/testing/perl-cpan-meta-check/APKBUILD @@ -0,0 +1,42 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-cpan-meta-check +_pkgreal=CPAN-Meta-Check +pkgver=0.012 +pkgrel=0 +pkgdesc="Verify requirements in a CPAN::Meta object" +url="http://search.cpan.org/dist/CPAN-Meta-Check/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" perl-test-deep " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + 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="adb415398390e83f09e4b91f73a6fd7f CPAN-Meta-Check-0.012.tar.gz" +sha256sums="4b4cd9a2ac788456fb43f32e40a380cb29122bb3b4082c70a008366d2881d5e7 CPAN-Meta-Check-0.012.tar.gz" +sha512sums="99ec6721dfb6be8fae7e5a4f6418d4d12d8d093df11f0596480ecc19a46ef3af3fc3da91ccdd7110f974e8f4d04e33166d76804b673a019bc4994f96b7078e7d CPAN-Meta-Check-0.012.tar.gz" |