2 # Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>
7 pkgdesc="Perl/CPAN Module for object oriented access to CSS"
10 license=('PerlArtistic' 'GPL')
11 options=('!emptydirs')
12 makedepends=('perl-parse-recdescent')
13 depends=('perl' 'perl-parse-recdescent>=1')
14 url="http://search.cpan.org/dist/CSS/"
15 source=("http://search.cpan.org/CPAN/authors/id/I/IA/IAMCAL/CSS-$pkgver.tar.gz"
17 md5sums=('a7b0f7256254fd55a15f8ce81eda7eaf'
18 '057c9c8619bbc1d7924fc4904fcbb47d')
23 DIST_DIR="${srcdir}/CSS-$pkgver"
25 export PERL_AUTOINSTALL=--skipdeps PERL_MM_USE_DEFAULT=1 \
26 PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
27 PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
28 MODULEBUILDRC=/dev/null
30 perl -I"$DIST_DIR" build-grammar.pl
31 mv CompiledGrammar.pm "$DIST_DIR/CSS/Parse/"
40 find "$pkgdir" -name .packlist -o -name perllocal.pod -delete