summaryrefslogtreecommitdiff
path: root/system/perl-libwww
diff options
context:
space:
mode:
Diffstat (limited to 'system/perl-libwww')
-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"