description="Build, test, and install Perl modules"
url="http://search.cpan.org/dist/Module-Build"

packager="Grat-OS Team"

makedepends=(perl-cpan-meta perl-inc-latest)
run=(perl perl-cpan-meta perl-inc-latest)

name=perl-module-build
version=0.4234

source=(http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/Module-Build-$version.tar.gz)

build() {
cd Module-Build-$version

perl Build.PL installdirs=vendor
perl Build
perl Build install destdir="$PKG"

# Remove perllocal.pod and .packlist if present in the package
for i in perllocal.pod .packlist; do
    find $PKG -name "$i" -exec rm -rf {} \;
done
}
