Commit 8eff01b6 authored by Natanael Copa's avatar Natanael Copa

main/perl-html-scrubber: upgrade to 0.11

parent f5c2cc7d
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-html-scrubber
pkgver=0.09
_pkgreal=HTML-Scrubber
pkgver=0.11
pkgrel=0
pkgdesc="HTML::Scrubber perl module"
pkgdesc="Perl extension for scrubbing/sanitizing html"
url="http://search.cpan.org/dist/HTML-Scrubber/"
arch="noarch"
license="GPLv2 or Artistic"
depends="perl perl-html-parser"
makedepends="perl-dev"
install=""
license="GPL PerlArtistic"
cpandepends="perl-html-parser"
cpanmakedepends=" "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/N/NI/NIGELM/HTML-Scrubber-$pkgver.tar.gz"
source="http://search.cpan.org/CPAN/authors/id/N/NI/NIGELM/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver"
_builddir="$srcdir"/HTML-Scrubber-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
perl Build.PL installdirs=vendor || return 1
}
build() {
cd "$_builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make && make test || return 1
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
./Build && ./Build test
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
./Build install destdir="$pkgdir" || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="a0f7bd0a29a4c7b1bec5495ad9bfb00e HTML-Scrubber-0.09.tar.gz"
md5sums="79b5ab3a8e599d3753ed6bc924d0f501 HTML-Scrubber-0.11.tar.gz"
sha256sums="0cdb1cada21e8de89b8f44eaaee5ab7e75943dfa053e0d6f78e0139da422df16 HTML-Scrubber-0.11.tar.gz"
sha512sums="bbda8803098c25544e79c5637fdae7654ffb277e221eb87a3e2b90cb645b673550b405fb3fb72b07d4ee16678a78da54b2e73769641f150f1e7ccb5eefaa5fb0 HTML-Scrubber-0.11.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment