From c295bd29d3f24f42f26afb62ba6ffe89184502c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 3 Jan 2025 12:15:33 +0700 Subject: [PATCH] New package: nghttp3-1.7.0 --- common/shlibs | 1 + srcpkgs/nghttp3-devel | 1 + srcpkgs/nghttp3/template | 28 ++++++++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 120000 srcpkgs/nghttp3-devel create mode 100644 srcpkgs/nghttp3/template diff --git a/common/shlibs b/common/shlibs index 7bc69ffc016..21bb15e6fe4 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2383,6 +2383,7 @@ libjreen-qt5.so.1 jreen-1.3.0_1 libzen.so.0 libzen-0.4.31_1 libmediainfo.so.0 libmediainfo-0.7.75_1 libnghttp2.so.14 nghttp2-1.43.0_2 +libnghttp3.so.9 nghttp3-1.7.0_1 librom1394.so.0 libavc1394-0.5.4_1 libavc1394.so.0 libavc1394-0.5.4_1 libiec61883.so.0 libiec61883-1.2.0_1 diff --git a/srcpkgs/nghttp3-devel b/srcpkgs/nghttp3-devel new file mode 120000 index 00000000000..0c67b62f578 --- /dev/null +++ b/srcpkgs/nghttp3-devel @@ -0,0 +1 @@ +nghttp3 \ No newline at end of file diff --git a/srcpkgs/nghttp3/template b/srcpkgs/nghttp3/template new file mode 100644 index 00000000000..3d03dc2044c --- /dev/null +++ b/srcpkgs/nghttp3/template @@ -0,0 +1,28 @@ +# Template file for 'nghttp3' +pkgname=nghttp3 +version=1.7.0 +revision=1 +build_style=cmake +configure_args="-DENABLE_STATIC_LIB=OFF -DBUILD_TESTING=ON" +short_desc="HTTP/3 library written in C" +maintainer="Đoàn Trần Công Danh " +license="MIT" +homepage="https://nghttp2.org/nghttp3/" +distfiles="https://github.com/ngtcp2/nghttp3/releases/download/v${version}/nghttp3-${version}.tar.xz" +checksum=b4eb6bceb99293d9a9df2031c1aad166af3d57b3e33655aca0699397b6f0d751 + +post_install() { + vlicense COPYING + rm -rf "${DESTDIR}/usr/share/doc" +} + +nghttp3-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/cmake + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + } +}