description="Cross-platform path specification manipulation"
url="http://search.cpan.org/dist/Path-Class/"

packager="Great-OS Team"

makedepends=(perl)
run=(perl)

name=perl-path-class
version=0.37
release=3

source=(http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/Path-Class-$version.tar.gz)

build() {
export PERL_MM_USE_DEFAULT=1 PERL5LIB=""  \
       PERL_AUTOINSTALL=--skipdeps        \
       PERL_MM_OPT="INSTALLDIRS=vendor"   \
       PERL_MB_OPT="--installdirs vendor" \
       MODULEBUILDRC=/dev/null

cd Path-Class-$version

perl Makefile.PL

make
make DESTDIR=$PKG install

find $PKG -name '*.bs' -or \
          -name .packlist -or \
          -name perllocal.pod -delete
}
