description="ExtUtils::MakeMaker - Create a module Makefile"
url="http://search.cpan.org/~bingos/ExtUtils-MakeMaker/"

packager="Grat-OS Team"

makedepends=(perl)
run=(perl)

name=perl-extutils-makemaker
version=7.34

source=(http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-$version.tar.gz)

build() {
cd ExtUtils-MakeMaker-$version

perl Makefile.PL

make OPTIMIZE="$CFLAGS" || exit 1
make test || true
make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1

# Remove duplicated man pages
rm -r $PKG/usr/share/man

# Remove perllocal.pod and .packlist if present in the package
find $PKG -name .packlist -or -name "perllocal.pod" -delete
    
rm $PKG/usr/bin/instmodsh
}
