diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-26 04:26:08 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-26 04:26:08 -0500 |
commit | be9dce9859a1f1b0b85e4685cbddf5aa48b61aa7 (patch) | |
tree | 407e1adcbfe101043e658c63c3808c7eee52dcac /system/perl-html-parser | |
parent | bdeb79c9ef857b337295341edf3ddaf452f7d43a (diff) | |
download | packages-be9dce9859a1f1b0b85e4685cbddf5aa48b61aa7.tar.gz packages-be9dce9859a1f1b0b85e4685cbddf5aa48b61aa7.tar.bz2 packages-be9dce9859a1f1b0b85e4685cbddf5aa48b61aa7.tar.xz packages-be9dce9859a1f1b0b85e4685cbddf5aa48b61aa7.zip |
system/perl-html-parser: add for lwp
Diffstat (limited to 'system/perl-html-parser')
-rw-r--r-- | system/perl-html-parser/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/system/perl-html-parser/APKBUILD b/system/perl-html-parser/APKBUILD new file mode 100644 index 000000000..f810d3748 --- /dev/null +++ b/system/perl-html-parser/APKBUILD @@ -0,0 +1,44 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-html-parser +_pkgreal=HTML-Parser +pkgver=3.72 +pkgrel=3 +pkgdesc="Perl HTML parser" +url="http://search.cpan.org/dist/HTML-Parser/" +arch="all" +license="GPL-2.0-only OR Artistic-1.0-Perl" +cpandepends="perl-html-tagset" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_pkgreal-$pkgver.tar.gz" + +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="9fded69219791af085018ffbe6737e74e370c543af52aa221aec174daf52d1b8d3cdd07f025176c0212ae572a924555262f2eefc73781f82cdb7d9cff58ae716 HTML-Parser-3.72.tar.gz" |