pkgname=wget version=2.2.1 build_no=1 upstream="https://ftp.gnu.org/gnu/wget/wget2-${version}.tar.gz" cddir="wget2-${version}" makedepends=(openssl) depends=(openssl) function do_configure { mkdir build/ cd build/ conf_flags=( --prefix=/usr --host=${DISTRO_TC} --enable-threads=posix --disable-rpath --enable-shared --disable-nls --with-openssl ) ../configure "${conf_flags[@]}" } function do_build { cd build/ make -j$(nproc) } function do_install { cd build/ make DESTDIR=${DESTDIR} install ln -s ${DESTDIR}/usr/bin/wget2 ${DESTDIR}/usr/bin/wget }