updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / perl-test-file-contents / PKGBUILD
blob6c7e66eb073ed5e9a41fa0b7e0f0c4f1bcc561d4
1 # Contributor: Anonymous
2 # Generator  : CPANPLUS::Dist::Arch 1.12
4 pkgname='perl-test-file-contents'
5 pkgver='0.20'
6 pkgrel='1'
7 pkgdesc="Test routines for examining the contents of files"
8 arch=('any')
9 license=('PerlArtistic' 'GPL')
10 options=('!emptydirs')
11 depends=('perl-text-diff>=0.35')
12 makedepends=()
13 url='http://search.cpan.org/dist/Test-File-Contents'
14 source=('http://search.cpan.org/CPAN/authors/id/D/DW/DWHEELER/Test-File-Contents-0.20.tar.gz')
15 md5sums=('b4ed786c03ca5ccaf694b41a1e98d85f')
16 _distdir="${srcdir}/Test-File-Contents-0.20"
18 build() {
19   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
20       PERL_AUTOINSTALL=--skipdeps                            \
21       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
22       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
23       MODULEBUILDRC=/dev/null
25     cd "$_distdir"
26     /usr/bin/perl Build.PL
27     /usr/bin/perl Build
28   )
31 check() {
32   cd "$_distdir"
33   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
34     /usr/bin/perl Build test
35   )
38 package() {
39   cd "$_distdir"
40   /usr/bin/perl Build install
41   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
44 # Local Variables:
45 # mode: shell-script
46 # sh-basic-offset: 2
47 # End:
48 # vim:set ts=2 sw=2 et: