From 49022e90983cc40dd5ba2b32503632fabb747de7 Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Mon, 4 Nov 2024 18:58:01 +0800 Subject: [PATCH] libnghttp2 1.64.0-1 --- PKGBUILD | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 2a68c25..0c43b95 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,28 +5,50 @@ # Maintainer: Future Linux Team pkgname=libnghttp2 -pkgver=1.60.0 +pkgver=1.64.0 pkgrel=1 pkgdesc="Framing layer of HTTP/2 is implemented as a reusable C library" arch=('x86_64') url="https://nghttp2.org/" license=('MIT') depends=('glibc') -source=(https://github.com/nghttp2/nghttp2/releases/download/v${pkgver}/${pkgname#lib}-${pkgver}.tar.xz) -sha256sums=(625d6c3da1d9ca4fd643a638256431ae68fd1901653b2a61a245eea7b261bf4e) +makedepends=('git') +source=(git+https://github.com/nghttp2/nghttp2.git#tag=v${pkgver} + git+https://github.com/ngtcp2/munit.git + git+https://github.com/mruby/mruby.git + git+https://github.com/tatsuhiro-t/neverbleed.git) +sha256sums=(SKIP + SKIP + SKIP + SKIP) + +prepare() { + cd nghttp2 + + git config --file=.gitmodules submodule.tests/munit.url ${srcdir}/munit/ + git config --file=.gitmodules submodule.third-party/mruby.url ${srcdir}/mruby/ + git config --file=.gitmodules submodule.tests/neverbleed.url ${srcdir}/neverbleed/ + + git submodule init + git -c protocol.file.allow=always submodule update + + autoreconf -i +} build() { - cd ${pkgname#lib}-${pkgver} + cd nghttp2 ${CONFIGURE} \ --disable-static \ - --enable-lib-only + --enable-lib-only \ + --disable-examples \ + --disable-python-bindings make } package() { - cd ${pkgname#lib}-${pkgver} + cd nghttp2 make -C lib DESTDIR=${pkgdir} install }