aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-html-scrubber/APKBUILD
blob: 274c8bda5dd3919f6b7265051ee7ade4943de522 (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: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-html-scrubber
_pkgreal=HTML-Scrubber
pkgver=0.11
pkgrel=0
pkgdesc="Perl extension for scrubbing/sanitizing html"
url="http://search.cpan.org/dist/HTML-Scrubber/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-html-parser"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/N/NI/NIGELM/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	perl Build.PL installdirs=vendor || return 1
}

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

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

md5sums="79b5ab3a8e599d3753ed6bc924d0f501  HTML-Scrubber-0.11.tar.gz"
sha256sums="0cdb1cada21e8de89b8f44eaaee5ab7e75943dfa053e0d6f78e0139da422df16  HTML-Scrubber-0.11.tar.gz"
sha512sums="bbda8803098c25544e79c5637fdae7654ffb277e221eb87a3e2b90cb645b673550b405fb3fb72b07d4ee16678a78da54b2e73769641f150f1e7ccb5eefaa5fb0  HTML-Scrubber-0.11.tar.gz"