aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-libwww
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-03-02 09:29:15 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-03-02 09:29:15 +0000
commitd78d9d386687641e1767d63b4ecd68565b785922 (patch)
tree6cf56de85642b62d1defbcf9759b2d5ed694369c /main/perl-libwww
parentca971dc7405357f4cf2fc91e19e571824158d2af (diff)
downloadaports-d78d9d386687641e1767d63b4ecd68565b785922.tar.bz2
aports-d78d9d386687641e1767d63b4ecd68565b785922.tar.xz
main/perl-libwww: upgrade to 6.22
Diffstat (limited to 'main/perl-libwww')
-rw-r--r--main/perl-libwww/APKBUILD23
1 files changed, 13 insertions, 10 deletions
diff --git a/main/perl-libwww/APKBUILD b/main/perl-libwww/APKBUILD
index e9ad9f8724..c43a1f20f3 100644
--- a/main/perl-libwww/APKBUILD
+++ b/main/perl-libwww/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-libwww
_realname=libwww-perl
-pkgver=6.15
+pkgver=6.22
pkgrel=0
pkgdesc="Perl module - World Wide Web library"
url="http://search.cpan.org/~mschilli"
@@ -12,26 +12,29 @@ 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"
-makedepends="perl-dev"
+makedepends="perl-dev perl-try-tiny perl-test-fatal"
install=
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_realname-$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/libwww-perl/libwww-perl/archive/v$pkgver.tar.gz"
-_builddir="$srcdir/$_realname-$pkgver"
+builddir="$srcdir/$_realname-$pkgver"
build() {
- cd $_builddir
+ cd $builddir
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make && make test || return 1
+ make || return 1
+}
+
+check() {
+ cd $builddir
+ make test || return 1
}
package() {
- cd $_builddir
+ cd $builddir
make DESTDIR="$pkgdir" install
# creates file collision among perl modules
find "$pkgdir" -name perllocal.pod -delete
}
-md5sums="6888c9d8728cd6f3ea3c9754461c9f94 libwww-perl-6.15.tar.gz"
-sha256sums="6f349d45c21b1ec0501c4437dfcb70570940e6c3d5bff783bd91d4cddead8322 libwww-perl-6.15.tar.gz"
-sha512sums="b031f1b6766fe5433940abbda438013211e0f82713bfbe8f3512fd3dd64d2c7b1236d19bb9414094726a37ee91908ebca5269855a639d0fd921423163b227aed libwww-perl-6.15.tar.gz"
+sha512sums="8dccdc4fd9411f1302d6fdace6a52d843e832d37a55bb544d9d7539ba5a1ff1d3c598af37c8289f9cd6e7bcfbaf05fc13043aedbbdef5b14314de84c2c16eba9 perl-libwww-6.22.tar.gz"