summaryrefslogtreecommitdiff
path: root/user/perl-html-scrubber/APKBUILD
blob: cbfd276790d00c9a73f099e670eabfc66b5a1f29 (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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-html-scrubber
_pkgname=HTML-Scrubber
pkgver=0.17
pkgrel=0
pkgdesc="Perl HTML sanitiser"
url="https://metacpan.org/release/HTML-Scrubber"
arch="noarch"
options="!check"  # insane amount of test pods that no other module uses
license="Artistic-1.0-Perl OR GPL-2.0-only"
depends="perl-html-parser"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/N/NI/NIGELM/HTML-Scrubber-$pkgver.tar.gz"
builddir="$srcdir/HTML-Scrubber-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="d6e04374d4da390d22cc4d51bfe2910078effc30d6d2ddc36dbc1b94ada12333c2f9c7acb1f444f777f9e268aed90ba8ea15c4c74a8b5ab955fe97ef04469ba7  HTML-Scrubber-0.17.tar.gz"