upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / perl-config-grammar / trunk / PKGBUILD
blobabb36c0c2e3ab6838479b1b7c732b77827577347
1 # Maintainer: Florian Pritz <bluewind@xinu.at>
2 # Contributor: Christos Nouskas <nous@archlinux.us>
3 # Generator  : CPANPLUS::Dist::Arch 1.25
5 pkgname='perl-config-grammar'
6 pkgver=1.13
7 pkgrel=1
8 pkgdesc="A grammar-based, user-friendly config parser"
9 arch=('any')
10 license=('PerlArtistic' 'GPL')
11 options=('!emptydirs')
12 depends=('perl')
13 makedepends=()
14 url='https://search.cpan.org/dist/Config-Grammar'
15 source=("https://search.cpan.org/CPAN/authors/id/D/DS/DSCHWEI/Config-Grammar-$pkgver.tar.gz")
16 sha256sums=('a8b3a3a2c9c8c43b92dc401bf2709d6514f15b467fd4f72c48d356335771d6e3')
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 "$srcdir/Config-Grammar-$pkgver"
26     /usr/bin/perl Makefile.PL
27     make
28   )
31 check() {
32   cd "$srcdir/Config-Grammar-$pkgver"
33   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
34     make test
35   )
38 package() {
39   cd "$srcdir/Config-Grammar-$pkgver"
40   make install
41   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete