summaryrefslogtreecommitdiff
path: root/community/perl-class-factory-util/PKGBUILD
blob: 3fe555c392540c042e3bbb2b14072e1d28febb07 (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
30
31
# $Id:$

pkgname=perl-class-factory-util
_realname=Class-Factory-Util
pkgver=1.7
pkgrel=2
pkgdesc="Provide utility methods for factory classes"
arch=(i686 x86_64)
license=('GPL' 'Artistic')
url="http://search.cpan.org/~drolsky/Class-Factory-Util"
options=(!emptydirs)
depends=('perl')
provides=('class-factory-util=1.7' 'Class::Factory::Util=1.7' 'perl-class-factory-util=1.7')
source=(http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Class-Factory-Util-1.7.tar.gz)
md5sums=('aebd79da361b676a7ecd3245fc3d1b3f')

build() {
  cd ${srcdir}/${_realname}-${pkgver}
  # install module in vendor directories.
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd ${srcdir}/${_realname}-${pkgver}
  make install DESTDIR=${pkgdir}

  # remove perllocal.pod and .packlist
  find ${pkgdir} -name perllocal.pod -delete
  find ${pkgdir} -name .packlist -delete
}