aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-html-parser/APKBUILD
blob: f6dbff8b5dc952423ef2a570a4577e230e95b8a1 (plain)
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
39
40
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-html-parser
_pkgreal=HTML-Parser
pkgver=3.71
pkgrel=3
pkgdesc="HTML parser class"
url="http://search.cpan.org/dist/HTML-Parser/"
arch="all"
license="GPL PerlArtistic"
cpandepends="perl-html-tagset"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

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

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

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

md5sums="9128a45893097dfa3bf03301b19c5efe  HTML-Parser-3.71.tar.gz"
sha256sums="be918b3749d3ff93627f72ee4b825683332ecb4c81c67a3a8d72b0435ffbd802  HTML-Parser-3.71.tar.gz"
sha512sums="98165e22534477a4e06e6c61c10a16ad04f0e4ec79a52e458a322751d66fc3fe0182391ff60dce76076449f29dcfcb613a6e43a839d4fc15c4af5b4e8751036e  HTML-Parser-3.71.tar.gz"