summaryrefslogtreecommitdiff
path: root/perl-ppi/PKGBUILD
blob: 65eb0eb68d3b9f0860c5bbe3a9a08c8ac1a537c6 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor:chimeracoder <dev@chimeracoder.net>

pkgname='perl-ppi'
pkgver=1.224
pkgrel='2'
pkgdesc="Parse, Analyze and Manipulate Perl (without perl)"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=(
  'perl>=5.6.0'
  'perl-clone>=0.30'
  'perl-digest-md5>=2.35'
  'perl-io-string>=1.07'
  'perl-list-moreutils>=0.16'
  'perl-params-util>=1.00'
  'perl-pathtools>=3.27_01'
  'perl-scalar-list-utils>=1.33'
  'perl-storable>=2.17'
  'perl-task-weaken')
makedepends=(
  'perl-class-inspector>=1.22'
  'perl-extutils-makemaker>=6.59'
  'perl-file-remove>=1.42'
  'perl-test-deep'
  'perl-test-object>=0.07'
  'perl-test-simple>=0.86'
  'perl-test-subcalls>=1.07'
  'perl-test-warn>=0.30')
checkdepends=('perl-test-nowarnings>=0.084' 'perl-test-object>=0.07' 'perl-test-subcalls>=1.07')
url='http://search.mcpan.org/dist/PPI'
source=("http://search.mcpan.org/CPAN/authors/id/M/MI/MITHALDU/PPI-${pkgver}.tar.gz")
sha512sums=('7c5f4a01b3d4a1e7e2f68d7e5c81368387fbe9a4cd2f20afc494706f742c9ba0b293747b692fb77af9a1457e077687c7d5217bf09137ab71bb50ba52da24431c')
_distdir="PPI-${pkgver}"

build() {
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
      PERL_AUTOINSTALL=--skipdeps                            \
      PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
      PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
      MODULEBUILDRC=/dev/null

    cd "$srcdir/$_distdir"
    /usr/bin/perl Makefile.PL
    make
  )
}

check() {
  cd "$srcdir/$_distdir"
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
    make test
  )
}

package() {
  cd "$srcdir/$_distdir"
  make 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: