1 # Maintainer: Petrenko Alexey <alexey-p at uralweb dot ru>
2 pkgname=perl-constant-lexical
5 pkgdesc="Perl pragma to declare lexical compile-time constants"
7 url="http://search.cpan.org/~sprout/constant-lexical-2/"
8 license=('GPL' 'PerlArtistic')
9 depends=('perl>=5.10.0' 'perl-sub-delete' 'perl-lexical-var')
11 source=("http://search.cpan.org/CPAN/authors/id/S/SP/SPROUT/constant-lexical-$pkgver.tar.gz")
12 md5sums=('b80916a698324b591af70cd2d7354129')
15 cd "$srcdir/constant-lexical-$pkgver"
17 # install module in vendor directories.
18 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
21 make install DESTDIR="$pkgdir/" || return 1
23 # remove perllocal.pod and .packlist
24 find "$pkgdir" -name perllocal.pod -delete
25 find "$pkgdir" -name .packlist -delete