2 # Contributor: AUR Perl <aurperl@juster.info>
3 # Generator : CPANPLUS::Dist::Arch 1.12
8 pkgdesc="A switch statement for Perl"
10 license=('PerlArtistic' 'GPL')
11 options=('!emptydirs')
14 url='http://search.cpan.org/dist/Switch'
15 source=('http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/Switch-2.16.tar.gz' 'switch.diff')
16 md5sums=('bf75dc7f171b4718a2118c3d6cbe6013'
17 'd4d48e5ef390f807d1f929ddc0808b4a')
18 _distdir="${srcdir}/Switch-2.16"
21 ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
22 PERL_AUTOINSTALL=--skipdeps \
23 PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
24 PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
25 MODULEBUILDRC=/dev/null
28 patch -p1 < "$srcdir/switch.diff"
29 /usr/bin/perl Makefile.PL
36 ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
44 find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
51 # vim:set ts=2 sw=2 et: