updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / perl-object-quick / PKGBUILD
blobd640492861244acf01ed9aded5e9de217e21070f
1 # Contributor: Justin Davis <jrcd83@gmail.com>
2 # Generator  : CPANPLUS::Dist::Arch 1.06
3 pkgname='perl-object-quick'
4 pkgver='0.012'
5 pkgrel='1'
6 pkgdesc="Quickly turn a hash into an object."
7 arch=('any')
8 license=('PerlArtistic' 'GPL')
9 options=('!emptydirs')
10 depends=('perl' 'perl-test-exception')
11 url='http://search.cpan.org/dist/Object-Quick'
12 source=('http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/Object-Quick-0.012.tar.gz')
13 md5sums=('877a28a6dee632a91f6251e718fb6135')
15 build() {
16   PERL=/usr/bin/perl
17   DIST_DIR="${srcdir}/Object-Quick-0.012"
18   export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
19     PERL_AUTOINSTALL=--skipdeps                            \
20     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
21     PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
22     MODULEBUILDRC=/dev/null
24   { cd "$DIST_DIR" &&
25     $PERL Build.PL &&
26     $PERL Build &&
27     $PERL Build test &&
28     $PERL Build install;
29   } || return 1;
31   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete