archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-cpan-meta / trunk / PKGBUILD
blob843e201faf4d3104f4a1661d07f7be72cdb6dd04
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=perl-cpan-meta
4 pkgver=2.150010
5 pkgrel=11
6 pkgdesc='the distribution metadata for a CPAN dist'
7 arch=('any')
8 license=('PerlArtistic' 'GPL')
9 options=('!emptydirs')
10 depends=('perl>=5.8' 'perl-cpan-meta-requirements>=2.121'
11          'perl-cpan-meta-yaml>=0.008' 'perl-cpan-meta>=2.150008')
12 url='https://metacpan.org/release/CPAN-Meta'
13 source=("https://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/CPAN-Meta-$pkgver.tar.gz")
14 sha512sums=('b5513c411de33e10da6751460e373a67c6c0245a98409fc525383feb1f9b913e9fcd23e6cc2e0faa93eab3ecb932e3ea31788d46e490ef67151c8842a096d700')
16 _ddir="CPAN-Meta-$pkgver"
18 build() (
19   cd "$srcdir/$_ddir"
20   export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
21   unset PERL5LIB PERL_MM_OPT
22   /usr/bin/perl Makefile.PL
23   make
26 check() (
27   cd "$srcdir/$_ddir"
28   export PERL_MM_USE_DEFAULT=1
29   unset PERL5LIB
30   make test
33 package() (
34   cd "$srcdir/$_ddir"
35   make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
36   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
39 # Local Variables:
40 # mode: shell-script
41 # sh-basic-offset: 2
42 # End:
43 # vim:set ts=2 sw=2 et: