From b1aef918fa06f776b6f0f6c1405d9c87721d9e99 Mon Sep 17 00:00:00 2001 From: Dexter Gaon-Shatford Date: Fri, 9 Sep 2022 16:10:13 -0400 Subject: [PATCH] New package: wget2-2.0.1 Also included are subpackages libwget and libwget-devel. --- common/shlibs | 1 + srcpkgs/libwget | 1 + srcpkgs/libwget-devel | 1 + srcpkgs/wget2/template | 51 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 54 insertions(+) create mode 120000 srcpkgs/libwget create mode 120000 srcpkgs/libwget-devel create mode 100644 srcpkgs/wget2/template diff --git a/common/shlibs b/common/shlibs index 669c4eb19fecbe..1afe2227f8ab6e 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4162,3 +4162,4 @@ libgbinder.so.1 libgbinder-1.1.20_1 libsunpinyin.so.3 libsunpinyin-3.0.0rc2_1 libtpm2-totp.so.0 libtpm2-totp-0.3.0_1 libmujs.so.1.2.0 mujs-1.2.0_2 +libwget.so.1 libwget-2.0.1_1 diff --git a/srcpkgs/libwget b/srcpkgs/libwget new file mode 120000 index 00000000000000..96cec08f36ca2d --- /dev/null +++ b/srcpkgs/libwget @@ -0,0 +1 @@ +wget2 \ No newline at end of file diff --git a/srcpkgs/libwget-devel b/srcpkgs/libwget-devel new file mode 120000 index 00000000000000..96cec08f36ca2d --- /dev/null +++ b/srcpkgs/libwget-devel @@ -0,0 +1 @@ +wget2 \ No newline at end of file diff --git a/srcpkgs/wget2/template b/srcpkgs/wget2/template new file mode 100644 index 00000000000000..4cfe3863cf38e6 --- /dev/null +++ b/srcpkgs/wget2/template @@ -0,0 +1,51 @@ +# Template file for 'wget2' +pkgname=wget2 +version=2.0.1 +revision=1 +build_style=gnu-configure +hostmakedepends="pkg-config texinfo pandoc" +makedepends="gnutls-devel zlib-devel libidn2-devel libpsl-devel + $(vopt_if brotli 'brotli-devel') $(vopt_if http2 'nghttp2-devel') + $(vopt_if gpgme 'gpgme-devel') $(vopt_if lzma 'liblzma-devel') + $(vopt_if bzip2 'bzip2-devel') $(vopt_if zstd 'libzstd-devel') + $(vopt_if pcre 'pcre2-devel')" +depends="libwget>=${version}_${revision}" +checkdepends="libmicrohttpd-devel gpgme" +short_desc="GNU file and recursive website downloader" +maintainer="chili-b " +license="GPL-3.0-or-later" +homepage="https://gitlab.com/gnuwget/wget2" +changelog="https://gitlab.com/gnuwget/wget2/-/raw/master/NEWS" +distfiles="${GNU_SITE}/wget/wget2-${version}.tar.gz" +checksum=0bb7fa03697bb5b8d05e1b5e15b863440826eb845874c4ffb5e32330f9845db1 + +build_options="brotli http2 gpgme lzma bzip2 zstd pcre" +build_options_default="brotli http2 gpgme lzma bzip2 zstd pcre" + +post_install() { + rm ${DESTDIR}/usr/bin/wget2_noinstall + for page in docs/man/man3/*.3; do + vman $page + done +} + +libwget_package() { + short_desc+=" - shared libraries" + license="LGPL-3.0-or-later" + pkg_install() { + vmove "usr/lib/*.so.*" + } +} + +libwget-devel_package() { + depends="libwget>=${version}_${revision}" + short_desc+=" - development files" + license="LGPL-3.0-or-later" + pkg_install() { + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + vmove usr/include + vmove usr/share/man/man3 + } +}