summaryrefslogtreecommitdiff
path: root/system/perl-html-parser/APKBUILD
blob: cd036e85ab0cc77d957264fe631384247a544979 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-html-parser
_pkgreal=HTML-Parser
_author=OALDERS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=3.76
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="50f9dc01997afdef33b58b48bfabd596b09cc11086773dcb4707086b7d7f54d2234d508e11a0b17e5d62849bf6acbc16aa8cd53080329ad3dacdbbe877c2c88b  HTML-Parser-3.76.tar.gz"