blob: 5d1e1d2acd81f09b9ac105f62bcd2d68bc6fac8d (
plain)
1 # Description: Build and install Perl modules
2 # URL: https://metacpan.org/release/Module-Build
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: perl
5
6 name=p5-module-build
7 version=0.4232
8 release=1
9 source=(https://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Build-$version.tar.gz)
10
11 build() {
12 cd Module-Build-$version
13 yes n|perl Makefile.PL
14 make OPTIMIZE="$CFLAGS"
15 make install DESTDIR=$PKG
16 # Remove perlcrap
17 find $PKG \
18 -name .packlist -or \
19 -name '*.bs' -or \
20 -name perllocal.pod | xargs rm
21 # Remove empty directories
22 find $PKG -depth -empty -exec rm -rf {} \;
23 }
|