summaryrefslogtreecommitdiffstats
path: root/main/perl-html-scrubber/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-11-05 09:00:08 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-11-05 09:00:08 +0000
commit8eff01b6aa3c4e0e0903444b2bc5c9ba9c889c67 (patch)
tree15e7dfbc0fdfee4cc51b27cc226be504860b9965 /main/perl-html-scrubber/APKBUILD
parentf5c2cc7dc3f577578cdf604a15bf16505348f46e (diff)
downloadaports-8eff01b6aa3c4e0e0903444b2bc5c9ba9c889c67.tar.bz2
aports-8eff01b6aa3c4e0e0903444b2bc5c9ba9c889c67.tar.xz
main/perl-html-scrubber: upgrade to 0.11
Diffstat (limited to 'main/perl-html-scrubber/APKBUILD')
-rw-r--r--main/perl-html-scrubber/APKBUILD38
1 files changed, 20 insertions, 18 deletions
diff --git a/main/perl-html-scrubber/APKBUILD b/main/perl-html-scrubber/APKBUILD
index 38c020086..8b4283b10 100644
--- a/main/perl-html-scrubber/APKBUILD
+++ b/main/perl-html-scrubber/APKBUILD
@@ -1,39 +1,41 @@
+# 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"