updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-meta-builder / PKGBUILD
blobd6972d3c0057f0064d4a11d6cc7f63874225fa46
1 # Contributor: AUR Perl <aurperl@juster.info>
2 # Generator  : CPANPLUS::Dist::Arch 1.12
4 pkgname='perl-meta-builder'
5 pkgver='0.003'
6 pkgrel='1'
7 pkgdesc="Tools for creating Meta objects to track custom metrics."
8 arch=('any')
9 license=('PerlArtistic' 'GPL')
10 options=('!emptydirs')
11 depends=('perl')
12 makedepends=('perl-fennec-lite' 'perl-test-exception')
13 url='http://search.cpan.org/dist/Meta-Builder'
14 source=('http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/Meta-Builder-0.003.tar.gz')
15 md5sums=('9d6c9f88fdd1d5cb3e11e852ac105521')
16 _distdir="${srcdir}/Meta-Builder-0.003"
18 build() {
19   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
20       PERL_AUTOINSTALL=--skipdeps                            \
21       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
22       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
23       MODULEBUILDRC=/dev/null
25     cd "$_distdir"
26     /usr/bin/perl Build.PL
27     /usr/bin/perl Build
28   )
31 check() {
32   cd "$_distdir"
33   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
34     /usr/bin/perl Build test
35   )
38 package() {
39   cd "$_distdir"
40   /usr/bin/perl Build install
41   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
44 # Local Variables:
45 # mode: shell-script
46 # sh-basic-offset: 2
47 # End:
48 # vim:set ts=2 sw=2 et: