# Description: Work with HTML in a DOM-like tree structure
# URL: http://search.cpan.org/~kentnl/HTML-Tree/
# Maintainer: Petar Petrov, slackalaxy at gmail dot com
# Depends on: p5-html-parser p5-module-build
# Optional: p5-html-formatter p5-libwww-perl
name=p5-html-tree
version=5.07
release=1
source=(http://search.cpan.org/CPAN/authors/id/K/KE/KENTNL/HTML-Tree-${version}.tar.gz)
build() {
cd HTML-Tree-$version
# PERL_MM_USE_DEFAULT=1 \
perl Build.PL --destdir="$PKG"
perl Build
perl Build install
find "$PKG" -depth \
-type f \( -name .packlist -o -name \*.bs -o -name perllocal.pod \) -delete , \
-type f -name autosplit.ix \( -exec grep -q '^[[:space:]]*package' {} \; -o -delete \) , \
-type d -empty -exec rmdir {} +
}