Package Details: wget2 2.0.1-1

Git Clone URL: https://aur.archlinux.org/wget2.git (read-only, click to copy)
Package Base: wget2
Description: Updated version of the popular wget URL retrieval tool
Upstream URL: https://gitlab.com/gnuwget/wget2
Keywords: download ftp gnu http wget
Licenses: GPL3
Conflicts: wget2-git
Submitter: wlhlm
Maintainer: wlhlm
Last Packager: wlhlm
Votes: 20
Popularity: 0.144513
First Submitted: 2020-06-16 13:55 (UTC)
Last Updated: 2022-06-04 14:27 (UTC)

Latest Comments

wooptoo commented on 2022-10-12 20:16 (UTC) (edited on 2022-10-12 20:17 (UTC) by wooptoo)

Seems to work fine with libnghttp2

Build

...
checking for libnghttp2... yes
Libs:               -lpcre2-8  -lidn2   -lzstd  -lbrotlidec  -lz  -lgpgme  -lnghttp2  -lpsl  -lgnutls

Testing

wget2 --http2-only --progress=bar \
  'https://link.storjshare.io/s/jwwlss3g44lwvp5etxkxcn6oo6ya/newdemo/Big%20Buck%20Bunny%20Demo.mp4?download=1'

wooptoo commented on 2022-10-12 20:06 (UTC)

From the build requirements it looks like this package will build with core/libnghttp2 instead of nghttp2 from AUR.

kescherAUR commented on 2022-09-03 08:38 (UTC)

Diff of the changes suggested by ugjdgdto.

diff --git a/PKGBUILD b/PKGBUILD
index 4188254..127016f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@ pkgdesc="Updated version of the popular wget URL retrieval tool"
 arch=('i686' 'x86_64')
 url="https://gitlab.com/gnuwget/wget2"
 license=('GPL3')
-depends=('pcre2' 'libidn2' 'zstd' 'brotli' 'xz' 'zlib' 'gpgme' 'bzip2' 'nghttp2' 'libpsl' 'gnutls' 'lzip')
+depends=('pcre2' 'libidn2' 'zstd' 'brotli' 'xz' 'zlib' 'gpgme' 'bzip2' 'libnghttp2' 'libpsl' 'gnutls' 'lzlib')
 # libhsts is optional but not in any repository. I also don't feel the
 # motivation to package it myself since it requires regularly updating
 # the preload list. Leave a comment if you're interested in HSTS
@@ -28,7 +28,9 @@ build() {
     --with-ssl=gnutls \
     --without-libhsts \
     --without-libidn \
-    --without-pcre
+    --without-pcre \
+    --with-bzip2 \
+    --with-lzma
   make
 }

ugjdgdto commented on 2022-07-24 02:11 (UTC)

Hello, may I suggest a few changes to the PKGBUILD?

  1. nghttp2 (which is now in AUR) can be replaced with libnghttp2. (README says libnghttp2, and libnghttp2 is still in official repo.)
  2. lzip can be dropped. (README says "optional, if you want to build distribution tarballs", for Arch packaging this is probably not needed.)
  3. lzlib can be added for lzip decompression support (Accept-Encoding: lzip). (README does not mention lzlib. Interestingly, we need lzlib and not lzip for Lzip compression: yes.)
  4. --with-bzip2 and --with-lzma can be added. (even though they are installed, .configure apparently does not enable bzip2 and XZ/LZMA support unless these two flags are specified.)