archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / perl-pegex / trunk / PKGBUILD
blob9c155339e1b12f5aa6b4b51b6b3297af1b9342bf
1 # Maintainer: Sergej Pupykin <arch+pub@sergej.pp.ru>
2 # Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
3 # Generator  : CPANPLUS::Dist::Arch 1.32
5 pkgname='perl-pegex'
6 pkgver=0.75
7 pkgrel=3
8 pkgdesc="Acmeist PEG Parser Framework"
9 arch=('any')
10 license=('PerlArtistic' 'GPL')
11 options=('!emptydirs')
12 depends=('perl-yaml-libyaml' 'perl-file-sharedir-install' 'perl-yaml-pp')
13 makedepends=()
14 url='https://metacpan.org/release/Pegex'
15 source=("https://search.cpan.org/CPAN/authors/id/I/IN/INGY/Pegex-$pkgver.tar.gz")
16 sha256sums=('4dc8d335de80b25247cdb3f946f0d10d9ba0b3c34b0ed7d00316fd068fd05edc')
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
24     cd "$srcdir/Pegex-$pkgver"
25     /usr/bin/perl Makefile.PL
26     make
27   )
30 check() {
31   cd "$srcdir/Pegex-$pkgver"
32   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
33     make test
34   )
37 package() {
38   cd "$srcdir/Pegex-$pkgver"
39   make install
40   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete