diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-11-18 02:35:08 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-11-18 02:35:08 +0000 |
commit | 3d45e787ad38e15a926a3f9b8e9cf41d36eaf2e6 (patch) | |
tree | 37cd194b886f9e076813b267245bdb79f8a82e18 /user/perl-html-scrubber | |
parent | 6954463b3f269602d48f3a2f5516b35d2b73550b (diff) | |
download | packages-3d45e787ad38e15a926a3f9b8e9cf41d36eaf2e6.tar.gz packages-3d45e787ad38e15a926a3f9b8e9cf41d36eaf2e6.tar.bz2 packages-3d45e787ad38e15a926a3f9b8e9cf41d36eaf2e6.tar.xz packages-3d45e787ad38e15a926a3f9b8e9cf41d36eaf2e6.zip |
user/perl-html-scrubber: new package
Diffstat (limited to 'user/perl-html-scrubber')
-rw-r--r-- | user/perl-html-scrubber/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/user/perl-html-scrubber/APKBUILD b/user/perl-html-scrubber/APKBUILD new file mode 100644 index 000000000..cbfd27679 --- /dev/null +++ b/user/perl-html-scrubber/APKBUILD @@ -0,0 +1,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" |