diff options
Diffstat (limited to 'p5-module-build/Pkgfile')
-rw-r--r-- | p5-module-build/Pkgfile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/p5-module-build/Pkgfile b/p5-module-build/Pkgfile new file mode 100644 index 000000000..6b81f5cd0 --- /dev/null +++ b/p5-module-build/Pkgfile @@ -0,0 +1,24 @@ +# Description: Build and install perl modules. +# URL: http://search.cpan.org/~kwilliams/Module-Build/ +# Maintainer: Danny Rawlins, monster dot romster at gmail dot com +# Packager: Richard Pöttler, richard dot poettler at gmail dot com +# Depends on: + +name=p5-module-build +version=0.30 +release=1 +source=(http://www.cpan.org/modules/by-module/Module/Module-Build-$version.tar.gz) + +build() { + cd Module-Build-$version + perl Build.PL --prefix $PKG/usr --installdirs site + ./Build + ./Build install + + find $PKG \( \ + -name perllocal.pod -o \ + -name .packlist \ + \) -delete + + find $PKG -type d -empty -delete +} |