updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / perl-switch / PKGBUILD
blobfca1dc629bee2a80970105e6de77798cee9d482c
1 # CPAN Name  : Switch
2 # Contributor: AUR Perl <aurperl@juster.info>
3 # Generator  : CPANPLUS::Dist::Arch 1.12
5 pkgname='perl-switch'
6 pkgver='2.16'
7 pkgrel='1'
8 pkgdesc="A switch statement for Perl"
9 arch=('any')
10 license=('PerlArtistic' 'GPL')
11 options=('!emptydirs')
12 depends=('perl')
13 makedepends=()
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"
20 build() {
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
27     cd "$_distdir"
28     patch -p1 < "$srcdir/switch.diff"
29     /usr/bin/perl Makefile.PL
30     make
31   )
34 check() {
35   cd "$_distdir"
36   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
37     make test
38   )
41 package() {
42   cd "$_distdir"
43   make install
44   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
47 # Local Variables:
48 # mode: shell-script
49 # sh-basic-offset: 2
50 # End:
51 # vim:set ts=2 sw=2 et: