updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-config-ini-mvp / PKGBUILD
blob4ff1bf83173d652fd3976f3b658b9e015f6b5f16
1 # CPAN Name  : Config-INI-MVP
2 # Contributor: Caleb Cushing <xenoterracide@gmail.com>
3 # Generator  : CPANPLUS::Dist::Arch 1.02
4 # Template @ http://github.com/xenoterracide/AURpan/blob/master/perl-config-ini-mvp/PKGBUILD.tt
5 # File bugs @ http://github.com/xenoterracide/AURpan/issues
7 pkgname='perl-config-ini-mvp'
8 pkgver='0.024'
9 pkgrel='2'
10 pkgdesc="multi-value capable .ini file reader (for plugins)"
11 arch=('any')
12 url='http://search.cpan.org/dist/Config-INI-MVP'
13 license=('PerlArtistic' 'GPL')
14 depends=('perl' 'perl-config-ini' 'perl-config-mvp>=0.092060' 'perl-moose>=0.65')
17 options=('!emptydirs')
19 source=('http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Config-INI-MVP-0.024.tar.gz')
20 md5sums=('887b2664aa36680cdde73095e67e12b4')
22 build() {
23   DIST_DIR="${srcdir}/Config-INI-MVP-0.024"
24   export PERL_AUTOINSTALL=--skipdeps PERL_MM_USE_DEFAULT=1
25   {
26         cd "$DIST_DIR" &&
27     perl Makefile.PL INSTALLDIRS=vendor &&
28     make &&
29     make test &&
30     make DESTDIR="$pkgdir" install;
31   } || return 1;
33   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
35 # remove conflicting files per bug https://rt.cpan.org/Public/Bug/Display.html?id=57844
36 # please use perl-config-mvp-reader-ini for these files instead
37 if [ -d "$pkgdir/usr/share/perl5/vendor_perl/Config/MVP/Reader/" ]
38         then
39                 rm "$pkgdir/usr/share/perl5/vendor_perl/Config/MVP/Reader/INI.pm"
40                 rm "$pkgdir/usr/share/man/man3/Config::MVP::Reader::INI.3pm"