forked from ports/contrib
24 lines
609 B
Plaintext
24 lines
609 B
Plaintext
# Description: Build and install Perl modules
|
|
# URL: https://metacpan.org/release/Module-Build
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: perl
|
|
|
|
name=p5-module-build
|
|
version=0.4234
|
|
release=1
|
|
source=(https://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Build-$version.tar.gz)
|
|
|
|
build() {
|
|
cd Module-Build-$version
|
|
yes n|perl Makefile.PL
|
|
make OPTIMIZE="$CFLAGS"
|
|
make install DESTDIR=$PKG
|
|
# Remove perlcrap
|
|
find $PKG \
|
|
-name .packlist -or \
|
|
-name '*.bs' -or \
|
|
-name perllocal.pod | xargs rm
|
|
# Remove empty directories
|
|
find $PKG -depth -empty -exec rm -rf {} \;
|
|
}
|