summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 75a40184230a8e20bb88b4d4a5e1be1efec61c97 (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
43
44
45
46
47
48
# Maintainer: xRemaLx <anton.komolov@gmail.com>

pkgname='perl-moosex-types-path-class'
pkgver='0.09'
pkgrel='1'
pkgdesc="A Path::Class type library for Moose"
_dist='MooseX-Types-Path-Class'
arch=('any')
url="http://search.cpan.org/dist/MooseX-Types-Path-Class"
license=('PerlArtistic' 'GPL')
depends=('perl-moosex-getopt' 'perl-moosex-types' 'perl-path-class>=0.16')
options=('!emptydirs' purge)
makedepends=('perl-module-build-tiny>=0.007')
checkdepends=('perl-extutils-makemaker>=6.30' 'perl-moose')
source=("http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/${_dist}-${pkgver}.tar.gz")
sha512sums=('d61f72957431852903d99257b2d9f53f88702d4d314297192345896aeb1df86ab4d80767a1d0fad76fb23b561925aae076bfda80106e3f7d0f2d8093956bdc9e')

sanitize() {
	unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
	export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null
}

build() {
  cd "${srcdir}/${_dist}-${pkgver}"
  sanitize
  perl Build.PL --installdirs vendor --destdir "$pkgdir"
  perl Build
}

check() {
  cd "${srcdir}/${_dist}-${pkgver}"
  sanitize
  perl Build test
}

package() {
  cd "${srcdir}/${_dist}-${pkgver}"
  sanitize
  perl Build install
  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete

}

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