blob: 7fc0e4b562b7151a13f89acc6b0607ebb0a1f1fa (
plain) (
tree)
|
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-html-parser
_pkgreal=HTML-Parser
_author=OALDERS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=3.80
pkgrel=0
pkgdesc="Perl HTML parser"
url="https://metacpan.org/release/HTML-Parser"
arch="all"
license="GPL-2.0-only OR Artistic-1.0-Perl"
depends="perl-html-tagset perl-http-message"
makedepends="perl-dev"
checkdepends="perl-uri"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS="$(perl -MConfig -E 'say $Config{ccflags}')"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="0fa299791243cf15f07bc995109e4995ba3f851c3192345b64493e401fc2b4407d0196bfc79c58460791b041a3f5faf26625ec5da94660d071d1c06c954df415 HTML-Parser-3.80.tar.gz"
|