updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / perl-moo / PKGBUILD
blobe71cf40973504a28f2daea1a002b29d0b1b3f76b
1 # Contributor: Justin Davis <jrcd83@gmail.com>
2 # Generator  : CPANPLUS::Dist::Arch 1.19
4 pkgname='perl-moo'
5 pkgver='0.009013'
6 pkgrel='1'
7 pkgdesc="Minimalist Object Orientation (with Moose compatiblity)"
8 arch=('any')
9 license=('PerlArtistic' 'GPL')
10 options=('!emptydirs')
11 depends=('perl-class-method-modifiers>=1.07' 'perl-strictures>=1.001001')
12 makedepends=('perl-test-fatal>=0.003')
13 url='http://search.cpan.org/dist/Moo'
14 source=('http://search.cpan.org/CPAN/authors/id/R/RI/RIBASUSHI/Moo-0.009013.tar.gz')
15 md5sums=('80ec444a3d274abe66b37ea4e5006ab9')
16 sha512sums=('5e6f3a7527d60e0107870773cd0a5bcdc2b0a6e8fa90a603db2ec42a3fdf2530c349d31bd91bcc307a61d1f16a97ac22bcd4733a83ecf2422871b5c138d234d3')
17 _distdir="${srcdir}/Moo-0.009013"
19 build() {
20   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
21       PERL_AUTOINSTALL=--skipdeps                            \
22       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
23       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
24       MODULEBUILDRC=/dev/null
26     cd "$_distdir"
27     /usr/bin/perl Makefile.PL
28     make
29   )
32 check() {
33   cd "$_distdir"
34   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
35     make test
36   )
39 package() {
40   cd "$_distdir"
41   make install
42   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
45 # Local Variables:
46 # mode: shell-script
47 # sh-basic-offset: 2
48 # End:
49 # vim:set ts=2 sw=2 et: