aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCeleste <20312-Celeste@users.gitlab.alpinelinux.org>2024-01-30 14:45:17 +0000
committeromni <omni+alpine@hack.org>2024-02-02 10:14:33 +0000
commit66b50d20be4770e7073ce9622b7161c37246dfba (patch)
tree22a0edf8c11b3f115ca4209b64eff4d23f4c971f
parent0f4fd6fddf67027e4384e56ef222668678e52819 (diff)
community/perl-www-mechanize: upgrade to 2.18
-rw-r--r--community/perl-www-mechanize/APKBUILD23
1 files changed, 16 insertions, 7 deletions
diff --git a/community/perl-www-mechanize/APKBUILD b/community/perl-www-mechanize/APKBUILD
index 4bcb6fda3b7..c8551b5643c 100644
--- a/community/perl-www-mechanize/APKBUILD
+++ b/community/perl-www-mechanize/APKBUILD
@@ -1,11 +1,11 @@
-# Automatically generated by apkbuild-cpan, template 3
+# Automatically generated by apkbuild-cpan, template 4
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-www-mechanize
+pkgver=2.18
+pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=WWW-Mechanize
-pkgver=2.17
-pkgrel=1
pkgdesc="Handy web browsing in a Perl object"
url="https://metacpan.org/release/WWW-Mechanize/"
arch="noarch"
@@ -19,12 +19,15 @@ checkdepends="
perl-path-tiny perl-test-taint perl-libwww perl-test-memory-cycle perl-uri
"
subpackages="$pkgname-doc"
-source="https://cpan.metacpan.org/authors/id/S/SI/SIMBABQUE/WWW-Mechanize-$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/WWW-Mechanize-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
+ INSTALLDIRS=vendor \
+ NO_PACKLIST=1 \
+ NO_PERLLOCAL=1
make
}
@@ -35,9 +38,15 @@ check() {
package() {
make DESTDIR="$pkgdir" install
- find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+doc() {
+ local file; find "$pkgdir" -name "*.pod" | while read -r file; do
+ amove "${file#"$pkgdir"}"
+ done
+ default_doc
}
sha512sums="
-396dfcb3993bce350a1356e74d8b1441c27217313e9d47e6a74b034315e8df0664abb9ed9e4e46162ea56440718c805fe0a5d895b73906479476b1134819731f WWW-Mechanize-2.17.tar.gz
+6edc2eb69cae856ea53edfe820e8acb07aefea67400d688c12b1de21b159fde6d1c7fd80a846733a01762e5aadb8c92a05231294309d8dc59e2c28bcfca29a5f WWW-Mechanize-2.18.tar.gz
"