summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 05:02:51 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 05:02:51 -0500
commit8383cc1d37ec51152d4c1004e002f0340bdf3786 (patch)
tree221c8451a69355c544810a5064881e2e1a56972e
parentecf49ff970530b0d4e8674115eb0bbd846940d99 (diff)
downloadpackages-8383cc1d37ec51152d4c1004e002f0340bdf3786.tar.gz
packages-8383cc1d37ec51152d4c1004e002f0340bdf3786.tar.bz2
packages-8383cc1d37ec51152d4c1004e002f0340bdf3786.tar.xz
packages-8383cc1d37ec51152d4c1004e002f0340bdf3786.zip
system/perl-libwww: pull in for apkbuild-cpan
-rw-r--r--system/perl-libwww/APKBUILD39
1 files changed, 39 insertions, 0 deletions
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 <rnalrd@alpinelinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+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"