#Maintainer: George Vlahavas pkgname=perl-html-parser pkgver=3.65 pkgrel=1gv source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Parser-$pkgver.tar.gz) docs=("readme" "install" "copying" "changelog*" "authors" "news" "todo" "license" "maintainers" "copyright.pod") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-html-parser (Perl HTML parser class)" "Objects of the HTML::Parser class will recognize markup and separate" "it from plain text (alias data content) in HTML documents. As" "different kinds of markup and text are recognized, the corresponding" "event handlers are invoked." ) build() { cd $startdir/src/HTML-Parser-$pkgver perl Makefile.PL || exit 1 make OPTIMIZE="$CFLAGS" || exit 1 make install INSTALLDIRS=vendor DESTDIR=$startdir/pkg || exit 1 # Remove perllocal.pod and .packlist if present in the package ( for i in perllocal.pod .packlist; do find $startdir/pkg -name "$i" -exec rm -rf {} \; done ) || exit 1 }