aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-06-06 06:13:58 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-06-06 06:14:19 +0000
commit816a5cc59733d9cb8a6e6e0bf92481c75ea08e54 (patch)
treebdbc19f6fc7547c3044e6ee8c5aa2e2472fa0fe3
parent188aea2484b300a6133d5fa1e245c2a4e08995bc (diff)
downloadaports-816a5cc59733d9cb8a6e6e0bf92481c75ea08e54.tar.gz
aports-816a5cc59733d9cb8a6e6e0bf92481c75ea08e54.tar.bz2
aports-816a5cc59733d9cb8a6e6e0bf92481c75ea08e54.tar.xz
main/perl-libwww: upgrade to 6.34
Modernize APKBUILD, update source
-rw-r--r--main/perl-libwww/APKBUILD29
1 files changed, 18 insertions, 11 deletions
diff --git a/main/perl-libwww/APKBUILD b/main/perl-libwww/APKBUILD
index 008c5693f4..cf28c18927 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.30
+pkgver=6.34
pkgrel=0
pkgdesc="Perl module - World Wide Web library"
url="http://search.cpan.org/~mschilli"
@@ -13,28 +13,35 @@ depends="perl-http-date perl-http-cookies perl-net-http perl-http-daemon
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"
-
+source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/libwww-perl-$pkgver.tar.gz"
builddir="$srcdir/$_realname-$pkgver"
+prepare() {
+ default_prepare
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+
build() {
- cd $builddir
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
}
check() {
cd $builddir
- make test || return 1
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
}
package() {
cd $builddir
make DESTDIR="$pkgdir" install
- # creates file collision among perl modules
- find "$pkgdir" -name perllocal.pod -delete
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="4f70aca94e2b205a081260f195c4d4d684d0c38047897a8e25d5d2081e860f6500a3d9182ae34aecde78c384cb0470b5c73326c803704d435f2272683a45ba92 perl-libwww-6.30.tar.gz"
+sha512sums="e51c91b2a67846a14b8dc6fe2cf00ee3b8c7dd3be7cf21e0a90c9fff381c40456f86529f317989cb3b3f3942f04514f0396e0044239b3b8a0239aafc8a99dc36 libwww-perl-6.34.tar.gz"