From 8383cc1d37ec51152d4c1004e002f0340bdf3786 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 26 Jun 2018 05:02:51 -0500 Subject: system/perl-libwww: pull in for apkbuild-cpan --- system/perl-libwww/APKBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 system/perl-libwww/APKBUILD diff --git a/system/perl-libwww/APKBUILD b/system/perl-libwww/APKBUILD new file mode 100644 index 000000000..ee7012f8a --- /dev/null +++ b/system/perl-libwww/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Leonardo Arena +# Maintainer: Adélie Perl Team +pkgname=perl-libwww +_realname=libwww-perl +pkgver=6.31 +pkgrel=0 +pkgdesc="Perl module - World Wide Web library" +url="http://search.cpan.org/~mschilli" +arch="noarch" +license="GPL-2.0-only OR Artistic-1.0-Perl" +depends="perl-http-date perl-http-cookies perl-net-http perl-http-daemon + perl-html-parser perl-file-listing perl-www-robotrules + perl-http-negotiate perl-uri perl-http-message + perl-lwp-mediatypes perl-encode-locale perl-try-tiny" +makedepends="perl-dev perl-test-fatal perl-test-requiresinternet" +install= +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/libwww-perl/libwww-perl/archive/v$pkgver.tar.gz" +builddir="$srcdir/$_realname-$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 + # creates file collision among perl modules + find "$pkgdir" -name perllocal.pod -delete +} + +sha512sums="884612d01d0d5dd47f74c7e9fd44ec17f6f08069521710c84912cd11643097a5456e91c9339b888307c629199721aa20c449cf8f7e4ef6fd7be719ab637b3cf2 perl-libwww-6.31.tar.gz" -- cgit v1.2.3-70-g09d2