commit 4106b279916898bfa85b807cc2a2d4099971ee22 Author: xhaa123 Date: Mon Nov 4 19:29:03 2024 +0800 libnghttp3 1.6.0-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..d450343 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# 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=libnghttp3 +pkgver=1.6.0 +pkgrel=1 +pkgdesc="HTTP/3 library written in C" +arch=('x86_64') +url="https://github.com/ngtcp2/nghttp3" +license=('MIT') +depends=('glibc') +source=(https://github.com/ngtcp2/nghttp3/releases/download/v${pkgver}/nghttp3-${pkgver}.tar.xz) +sha256sums=(eaa901954bc494034d3738ef19130de69387d6a3da029044c60d9dae91792a8d) + +prepare() { + cd nghttp3-${pkgver} + + autoreconf -i +} + +build() { + cd nghttp3-${pkgver} + + ${CONFIGURE} + + make +} + +package() { + cd nghttp3-${pkgver}/lib + + make DESTDIR=${pkgdir} install +}