File PKGBUILD of Package wget2
# Maintainer: Wilhelm Schuster <aur [aT] rot13 _dot_ io>
pkgname=wget2
pkgver=2.1.0
pkgrel=1
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' 'libnghttp2' 'libpsl' 'gnutls' 'lzip' 'ca-certificates')
# libhsts is optional but not in any repository. I currently don't feel
# the motivation to package it myself since it requires regularly
# updating the preload list. Leave a comment if you'd like to see HSTS
# preload support so that I can gauge interest.
optdepends=()
checkdepends=('libmicrohttpd')
makedepends=('gperf' 'python' 'doxygen' 'pandoc')
conflicts=("$pkgname-git")
source=("https://ftp.gnu.org/gnu/wget/${pkgname}-${pkgver}.tar.gz")
sha256sums=('a05dc5191c6bad9313fd6db2777a78f5527ba4774f665d5d69f5a7461b49e2e7')
build() {
cd "${srcdir}"/${pkgname}-${pkgver}
./configure --prefix=/usr --sysconfdir=/etc \
--with-openssl=no \
--with-ssl=gnutls \
--without-libhsts \
--without-libidn \
--without-pcre
make
}
check() {
cd "${srcdir}"/${pkgname}-${pkgver}
make check
}
package() {
cd "${srcdir}"/${pkgname}-${pkgver}
make DESTDIR="$pkgdir/" install
# AFAICT wget2_noinstall is meant run `make check` before installing
# wget2 itself. Normally, wget2 links to libwget, which is located
# in /usr/lib and thus can't be resolved before wget2 is actually
# installed.
rm -f "$pkgdir/usr/bin/wget2_noinstall"
}
# vim:set ts=2 sw=2 tw=0 et: