summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c10218e2bd1671888db78d8a773be5e7001f190 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This PKGBUILD was inspired by cpan4pacman
# Maintainer: Jozef Riha <jose1711 at gmail dot com>

pkgname=perl-proc-parallelloop
_cpanname=Proc-ParallelLoop
pkgver=0.5
pkgrel=2
pkgdesc="Parallel looping constructs for Perl programs"
arch=('any')
url="http://search.cpan.org/~bdarrah/${_cpanname}"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/B/BD/BDARRAH/${_cpanname}-${pkgver}.tgz) 
md5sums=('cc60f8a69454d64cc5a0f0b57171b13c')

build() {
  cd $srcdir/${_cpanname}-${pkgver}
  sed -i '/^auto_install/d' Makefile.PL
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd $srcdir/${_cpanname}-${pkgver}
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}