# wget 1.25.0 — descargador HTTP/FTP (C). De-Alpinizada: configure-split, TLS openssl + zlib,
# sin libidn (no en corpus). pcre2 para --regex.
# - compiler=zig-cc (migrado de gcc, matar-gcc 2026-07-16): sin parches ni flags extra.
#   Estático puro (link=static) ⇒ el ELF no tiene sección dinámica: cero NEEDED de Alpine.
name    = "wget"
version = "1.25.0"
license = "GPL-3.0-or-later"
[source]
tarball = "https://ftp.gnu.org/gnu/wget/wget-1.25.0.tar.gz"
sha256  = "766e48423e79359ea31e41db9e5c289675947a7fcf2efdcedb726ac9d0da3784"
[build]
compiler = "zig-cc"
target   = "x86_64-linux-musl"
link     = "static"
flags    = []
[build.phases]
configure = '''
./configure --build=$CBUILD --host=$CHOST --prefix=/usr --sysconfdir=/etc \
	--with-ssl=openssl --with-zlib --without-libidn --without-libpsl --disable-nls \
	CPPFLAGS=-I/usr/include LDFLAGS="-static -no-pie -L/usr/lib"
'''
compile = 'make'
install = 'make DESTDIR=/out install'
[deps]
build = ["openssl", "zlib", "pcre2", "perl"]
