updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / perl-data-section / PKGBUILD
blob00db9fd2b3e6f93cbb2ca63fb454cbc61d63c623
1 # CPAN Name  : Data-Section
2 # Contributor: Caleb Cushing <xenoterracide@gmail.com>
3 # Generator  : CPANPLUS::Dist::Arch 1.04
4 # Template @ http://github.com/xenoterracide/AURpan/blob/master/perl-data-section/PKGBUILD.tt
5 # File bugs @ http://github.com/xenoterracide/AURpan/issues
7 pkgname='perl-data-section'
8 pkgver='0.101620'
9 pkgrel='1'
10 pkgdesc="read multiple hunks of data out of your DATA section"
11 arch=('any')
12 url='http://search.cpan.org/dist/Data-Section'
13 license=('PerlArtistic' 'GPL')
14 depends=('perl' 'perl-mro-compat>=0.09' 'perl-sub-exporter>=0.979')
17 options=('!emptydirs')
19 source=('http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Data-Section-0.101620.tar.gz')
20 md5sums=('ab3956489991b41a6604aad81a4d3a0b')
22 build() {
23   DIST_DIR="${srcdir}/Data-Section-0.101620"
24   export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
25     PERL_AUTOINSTALL=--skipdeps                            \
26     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
27     PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
28     MODULEBUILDRC=/dev/null
29   {
30         cd "$DIST_DIR" &&
31     perl Makefile.PL INSTALLDIRS=vendor &&
32     make &&
33     make test &&
34     make DESTDIR="$pkgdir" install;
35   } || return 1;
37   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete