description="Build, test, and install Perl modules"
url="https://github.com/dagolden/inc-latest"

packager="Grat-OS Team"

makedepends=(perl)
run=(perl)

name=perl-inc-latest
version=0.500

source=(http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/inc-latest-$version.tar.gz)

build() {
cd inc-latest-$version

perl Makefile.PL INSTALLDIRS=vendor

make
make DESTDIR=$PKG install

# 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
}
