summaryrefslogtreecommitdiff
path: root/system/perl-libwww/APKBUILD
diff options
context:
space:
mode:
authorHorst G. Burkhardt <horst@adelielinux.org>2018-06-26 21:22:14 +0000
committerHorst G. Burkhardt <horst@adelielinux.org>2018-06-26 21:22:14 +0000
commit96c6e51ae6627ba4683d4462a5662c3dd2d3c24f (patch)
tree72d16d07608c8916ae057944e248414688f8ba53 /system/perl-libwww/APKBUILD
parent8d91add99a801cda01281f6ff59e66e64cc4369b (diff)
parent8383cc1d37ec51152d4c1004e002f0340bdf3786 (diff)
downloadpackages-96c6e51ae6627ba4683d4462a5662c3dd2d3c24f.tar.gz
packages-96c6e51ae6627ba4683d4462a5662c3dd2d3c24f.tar.bz2
packages-96c6e51ae6627ba4683d4462a5662c3dd2d3c24f.tar.xz
packages-96c6e51ae6627ba4683d4462a5662c3dd2d3c24f.zip
Merge branch 'master' of code.foxkit.us:adelie/packages
Diffstat (limited to 'system/perl-libwww/APKBUILD')
-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"