aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-html-parser/APKBUILD
blob: 482df16d55bc68cf8b31e5f89d7d6447e070989b (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
37
38
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-html-parser
_pkgname=HTML-Parser
pkgver=3.75
pkgrel=1
pkgdesc="HTML parser class"
url="https://metacpan.org/release/HTML-Parser/"
arch="all"
license="Artistic-1.0-Perl or GPL-1.0-or-later"
cpandepends="perl-html-tagset perl-http-message"
depends="$cpandepends"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/C/CA/CAPOEIRAB/HTML-Parser-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="a694723c0e85dfa834f60b995032e1db25357b07f0f7e244cc765dfb3005e70176c9f018d1d1ff66592324678a791030f4002f995edcd3de9096bcd359c0ee6f  HTML-Parser-3.75.tar.gz"