#!/bin/bash # Build script for GNU wget set -e cd "$SRCDIR" # Fix illumos gnulib compatibility issues for f in lib/localename.c gnulib-tests/localename.c; do if [ -f "$f" ]; then sed -i 's/extern char \* getlocalename_l/extern const char * getlocalename_l/' "$f" fi done ./configure \ --prefix=$PREFIX \ --sysconfdir=$SYSCONFDIR \ --with-ssl=openssl \ --disable-nls \ --disable-pcre2 # Fix illumos memset_s false detection if present for config in lib/config.h gnulib-tests/config.h config.h; do if [ -f "$config" ]; then sed -i 's/#define HAVE_MEMSET_S 1/\/* #undef HAVE_MEMSET_S - illumos has it as macro only *\//' "$config" fi done gmake -j${JOBS:-1} gmake install DESTDIR="$PKGDIR" # GNU Wget - Network downloader # https://www.gnu.org/software/wget/ [package] name = "wget" version = "1.25.0" release = 1 description = "GNU Wget - Network downloader supporting HTTP, HTTPS and FTP" url = "https://www.gnu.org/software/wget/" license = "GPL-3.0" maintainer = "Chris Tusa " arch = "x86_64" [dependencies] runtime = ["zlib"] build = ["zlib"] [[source]] file = "wget-1.25.0.tar.gz" urls = ["https://mirrors.kernel.org/gnu/wget/wget-1.25.0.tar.gz"] checksum = "766e48423e79359ea31e41db9e5c289675947a7fcf2efdcedb726ac9d0da3784" [build] parallel = true