updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / perl-forks / PKGBUILD
blob4ddfb59327d351e25b8f18a4dbe10af0a7fed28e
1 # Contributor: AUR Perl <aurperl@juster.info>
2 # Generator  : CPANPLUS::Dist::Arch 1.10
3 pkgname='perl-forks'
4 pkgver='0.34'
5 pkgrel='1'
6 pkgdesc="forks - emulate threads with fork"
7 arch=('i686' 'x86_64')
8 license=('PerlArtistic' 'GPL')
9 options=('!emptydirs')
10 depends=('perl-acme-damn' 'perl-devel-symdump' 'perl-list-moreutils>=0.15' 'perl-sys-sigaction>=0.11')
11 makedepends=()
12 url='http://search.cpan.org/dist/forks'
13 source=('http://search.cpan.org/CPAN/authors/id/R/RY/RYBSKEJ/forks-0.34.tar.gz')
14 md5sums=('26e5b395cb24975f9b99414fe1d748f1')
16 build() {
17   PERL=/usr/bin/perl
18   DIST_DIR="${srcdir}/forks-0.34"
19   export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
20     PERL_AUTOINSTALL=--skipdeps                            \
21     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
22     PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
23     MODULEBUILDRC=/dev/null
25   { cd "$DIST_DIR" &&
26     $PERL Makefile.PL &&
27     make &&
28     make test &&
29     make install;
30   } || return 1;
32   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete