void-packages/srcpkgs/wget/template
Roberto Ricci 6a91dea6fc wget: update to 1.21.1
Change the libidn-devel makedep to libidn2-devel. This enables IRI
functionality in wget. libidn wasn't being used at all.

Also make the zlib build-time dependency explicit.

Fixes: #27813
Closes: #27811 [via git-merge-pr]
2021-01-10 18:22:43 -03:00

27 lines
992 B
Bash

# Template file for 'wget'
pkgname=wget
version=1.21.1
revision=1
build_style=gnu-configure
configure_args="$(vopt_if ssl '--with-ssl=openssl') $(vopt_if gnutls '--with-ssl=gnutls')"
conf_files="/etc/wgetrc"
hostmakedepends="perl pkg-config"
makedepends="libidn2-devel zlib-devel libuuid-devel pcre2-devel
$(vopt_if gnutls 'gnutls-devel') $(vopt_if ssl 'libressl-devel')"
depends="ca-certificates"
checkdepends="perl-HTTP-Daemon perl-IO-Socket-SSL"
short_desc="GNU wget download utility"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
#changelog="https://git.savannah.gnu.org/cgit/wget.git/plain/NEWS"
homepage="http://www.gnu.org/software/wget/wget.html"
distfiles="${GNU_SITE}/wget/wget-${version}.tar.gz"
checksum=59ba0bdade9ad135eda581ae4e59a7a9f25e3a4bde6a5419632b31906120e26e
build_options="gnutls ssl"
build_options_default="ssl"
vopt_conflict gnutls ssl
post_install() {
echo "ca_certificate=/etc/ssl/certs/ca-certificates.crt" >> ${DESTDIR}/etc/wgetrc
}