#Packager: George Vlahavas # _cpanname is the module name as provided in CPAN. # For example: Archive-Zip # The corresponding package will be named: perl-Archive-Zip _cpanname=Module-Install pkgname=perl-${_cpanname} pkgver=1.19 pkgrel=gv source=("https://cpan.metacpan.org/authors/id/E/ET/ETHER/Module-Install-1.19.tar.gz") docs=("readme" "install" "copying" "changes" "authors" "news" "todo" "manifest*") url=https://metacpan.org/pod/distribution/Module-Install/lib/Module/Install.pod slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-Module-Install (Standalone, extensible Perl module installer)" "Module::Install is a package for writing installers for CPAN (or" "CPAN-like) distributions that are clean, simple, minimalist, act in a" "strictly correct manner with ExtUtils::MakeMaker, and will run on any" "Perl installation version 5.005 or newer." ) build() { cd $startdir/src/${_cpanname}-$pkgver INSTALLDIRS=vendor perl Makefile.PL || exit 1 make OPTIMIZE="$CFLAGS" || exit 1 make install INSTALLDIRS=vendor DESTDIR=$startdir/pkg || exit 1 # Remove perllocal.pod and .packlist if present in the package ( for i in perllocal.pod .packlist; do find $startdir/pkg -name "$i" -exec rm -rf {} \; done ) || exit 1 }