From 169cdb527895c3be2897a251e1b7a806351da3e3 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 | 52 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 55 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 bd9890ed7846..8bcb7cc5670e 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4161,3 +4161,4 @@ libsyncthingconnector.so.1.2.3 syncthingtray-1.2.3_1 libglibutil.so.1 libglibutil-1.0.64_1 libgbinder.so.1 libgbinder-1.1.20_1 libsunpinyin.so.3 libsunpinyin-3.0.0rc2_1 +libwget.so.1 libwget-2.0.1_1 diff --git a/srcpkgs/libwget b/srcpkgs/libwget new file mode 120000 index 000000000000..96cec08f36ca --- /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 000000000000..96cec08f36ca --- /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 000000000000..9b49135870d2 --- /dev/null +++ b/srcpkgs/wget2/template @@ -0,0 +1,52 @@ +# 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="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/-/blob/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() { + install -D -m 644 -t $DESTDIR/usr/share/man/man3 docs/man/man3/*.3 +} + +libwget_package() { + depends="gnutls libidn2 libpsl + $(vopt_if brotli 'brotli') $(vopt_if http2 'nghttp2') + $(vopt_if gpgme 'libgpgme') $(vopt_if lzma 'liblzma') + $(vopt_if bzip2 'bzip2') $(vopt_if zstd 'libzstd') + $(vopt_if pcre 'libpcre2')" + 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/pkgconfig + vmove usr/include + vmove usr/share/man/man3 + } +}