diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-05-11 18:42:48 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-05-11 18:42:48 +0000 |
commit | 680936f5951f902232f3ce92c2c02d41b8e7d929 (patch) | |
tree | 0d7df4278144586fe243d12181f3406d162a88e7 /main/perl-html-scrubber | |
parent | 06bc6b1664e418274a6b54292117e2c7d824cc94 (diff) | |
download | aports-680936f5951f902232f3ce92c2c02d41b8e7d929.tar.bz2 aports-680936f5951f902232f3ce92c2c02d41b8e7d929.tar.xz |
main/perl-html-scrubber: upgrade to 0.17
Diffstat (limited to 'main/perl-html-scrubber')
-rw-r--r-- | main/perl-html-scrubber/APKBUILD | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/main/perl-html-scrubber/APKBUILD b/main/perl-html-scrubber/APKBUILD index 274c8bda5d..a61f7b15fa 100644 --- a/main/perl-html-scrubber/APKBUILD +++ b/main/perl-html-scrubber/APKBUILD @@ -3,7 +3,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-html-scrubber _pkgreal=HTML-Scrubber -pkgver=0.11 +pkgver=0.17 pkgrel=0 pkgdesc="Perl extension for scrubbing/sanitizing html" url="http://search.cpan.org/dist/HTML-Scrubber/" @@ -16,26 +16,18 @@ 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 -} +builddir="$srcdir/$_pkgreal-$pkgver" build() { - cd "$_builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - ./Build && ./Build test + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make } package() { - cd "$_builddir" - ./Build install destdir="$pkgdir" || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install 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" +sha512sums="d6e04374d4da390d22cc4d51bfe2910078effc30d6d2ddc36dbc1b94ada12333c2f9c7acb1f444f777f9e268aed90ba8ea15c4c74a8b5ab955fe97ef04469ba7 HTML-Scrubber-0.17.tar.gz" |