blob: 8ff8caf4ccb37276c6f6a37448480a3ebdd66b21 (
plain)
1 # Description: Keep imports and functions out of your namespace
2 # URL: https://metacpan.org/pod/namespace::clean
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: p5-b-hooks-endofscope p5-package-stash
5
6 name=p5-namespace-clean
7 version=0.27
8 release=1
9 source=(https://cpan.metacpan.org/authors/id/R/RI/RIBASUSHI/namespace-clean-$version.tar.gz)
10
11 build() {
12 cd namespace-clean-$version
13 export \
14 PERL_MM_USE_DEFAULT=1 \
15 PERL_AUTOINSTALL=--skipdeps \
16 PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$PKG"'" \
17 PERL_MB_OPT="--installdirs vendor --destdir '"$PKG"'" \
18 MODULEBUILDRC=/dev/null
19 perl Makefile.PL
20 make
21 make install
22 find $PKG -name .packlist -o \
23 -name perllocal.pod -o \
24 -name README -o \
25 -name '*.bs' | xargs rm
26 }
|