diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-05-14 14:50:23 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-05-14 17:48:22 +0000 |
commit | e1e052414c2b7bdf028b46a298a43dde67d47fc0 (patch) | |
tree | fb3aeda72a811cf7aa023ba5b663c3cff8975088 /main/perl-test-cpan-meta | |
parent | ba619feef62489e8a503e6a31df04e7a3eed68f7 (diff) | |
download | aports-e1e052414c2b7bdf028b46a298a43dde67d47fc0.tar.bz2 aports-e1e052414c2b7bdf028b46a298a43dde67d47fc0.tar.xz |
main/perl-test*: move perl-html-format dependencies to main
Diffstat (limited to 'main/perl-test-cpan-meta')
-rw-r--r-- | main/perl-test-cpan-meta/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/main/perl-test-cpan-meta/APKBUILD b/main/perl-test-cpan-meta/APKBUILD new file mode 100644 index 0000000000..6ea0ed25c4 --- /dev/null +++ b/main/perl-test-cpan-meta/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com> +# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com> +pkgname=perl-test-cpan-meta +_pkgreal=Test-CPAN-Meta +pkgver=0.25 +pkgrel=0 +pkgdesc="Validate your CPAN META.json files" +url="http://search.cpan.org/dist/Test-CPAN-Meta/" +arch="noarch" +license="Artistic-2" +cpandepends="" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/B/BA/BARBIE/$_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 -I. 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" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="60a3414e1e0f9aaa1a9459aedd76a6d937742a4197d0d5ce9330348138997d372ca3f454c262fb6dd757699168aa7d1c2653c4066060c9c5685a6fe407260580 Test-CPAN-Meta-0.25.tar.gz" |