summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c6b7c13d0ae1d774114c22a2f8eb1f60d14a5f37 (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
32
33
34
35
36
37
38
39
40
41
42
# Contributor: chimeracoder <dev@chimeracoder.net>
# Generator  : CPANPLUS::Dist::Arch 1.29

pkgname='perl-moosex-lazyrequire'
pkgver='0.11'
pkgrel='1'
pkgdesc="Required attributes which fail only when trying to use them"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-moose>=0.94' 'perl-aliased>=0.30' 'perl-namespace-autoclean>=0')
makedepends=()
checkdepends=('perl-test-checkdeps>=0.002' 'perl-test-fatal>=0')
url='http://search.cpan.org/dist/MooseX-LazyRequire'
source=("http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/MooseX-LazyRequire-$pkgver.tar.gz")
md5sums=('89f708cadb6b524340b01e47c3c44969')
sha512sums=('aec29204be8f023a63fa9e313ac5fa5374c985517eca5a022b4b518495b4158a71b49f36819e954a8f03cf35dd0fb5a183904797e022beeb1a35de7a5532cc14')
_distdir="MooseX-LazyRequire-$pkgver"

build() {
  cd "$_distdir"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "$_distdir"
  make test
}

package() {
  cd "$_distdir"
  make DESTDIR="$pkgdir" install
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}

# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et: