summaryrefslogtreecommitdiff
path: root/community/perl-class-factory-util/PKGBUILD
blob: 2e7fe0ca1f78b77aebaa17f4492ce770a3280520 (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: PKGBUILD 65743 2012-02-22 12:12:49Z spupykin $

pkgname=perl-class-factory-util
_realname=Class-Factory-Util
pkgver=1.7
pkgrel=4
pkgdesc="Provide utility methods for factory classes"
arch=(i686 x86_64 'mips64el')
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
}