summaryrefslogtreecommitdiff
path: root/community/perl-class-factory-util/PKGBUILD
blob: e42ba31e7d2a9268138df5491cfd4bde2d8e3be5 (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=3
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
}