From 56ef3ce7f34cc6082bbcf917f459bbcb0b23e1fc Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Mon, 4 Nov 2024 18:49:49 +0800 Subject: [PATCH] libnghttp2 1.60.0-1 --- PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..2a68c25 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=libnghttp2 +pkgver=1.60.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) + +build() { + cd ${pkgname#lib}-${pkgver} + + ${CONFIGURE} \ + --disable-static \ + --enable-lib-only + + make +} + +package() { + cd ${pkgname#lib}-${pkgver} + + make -C lib DESTDIR=${pkgdir} install +}