summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-class-factory-util/PKGBUILD
blob: e5a10b968dc59be3b8d8948b0050abd9b280307e (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$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-class-factory-util
pkgver=1.7
pkgrel=8
pkgdesc="Provide utility methods for factory classes"
arch=(any)
license=('GPL' 'PerlArtistic')
url="http://search.cpan.org/dist/Class-Factory-Util/"
options=(!emptydirs)
depends=('perl')
makedepends=('perl-module-build')
source=(http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Class-Factory-Util-1.7.tar.gz)
md5sums=('aebd79da361b676a7ecd3245fc3d1b3f')

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

package() {
  cd "$srcdir"/Class-Factory-Util-${pkgver}
  make install DESTDIR="$pkgdir"

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