25 lines
612 B
Plaintext
25 lines
612 B
Plaintext
|
# Description: Perl HTML parser class
|
||
|
# URL: https://metacpan.org/release/HTML-Parser
|
||
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||
|
# Depends on: p5-html-tagset
|
||
|
|
||
|
name=p5-html-parser
|
||
|
version=3.81
|
||
|
release=1
|
||
|
source=(https://www.cpan.org/modules/by-module/HTML/HTML-Parser-$version.tar.gz)
|
||
|
|
||
|
build() {
|
||
|
cd HTML-Parser-$version
|
||
|
perl Makefile.PL INSTALLDIRS=vendor
|
||
|
make OPTIMIZE="$CFLAGS"
|
||
|
make DESTDIR=$PKG install
|
||
|
|
||
|
find $PKG -type f \( \
|
||
|
-name '.packlist' -or \
|
||
|
-name '*.bs' -or \
|
||
|
-name 'autosplit.ix' -or \
|
||
|
-name 'perllocal.pod' \) -delete
|
||
|
|
||
|
find $PKG -depth -empty -exec rm -r {} \;
|
||
|
}
|