diff --git a/libnghttp3/.SRCINFO b/libnghttp3/.SRCINFO new file mode 100644 index 0000000000..a83edeb055 --- /dev/null +++ b/libnghttp3/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = libnghttp3 + pkgdesc = HTTP/3 library written in C + pkgver = 1.1.0 + pkgrel = 1 + url = https://github.com/ngtcp2/nghttp3 + arch = x86_64 + license = MIT + provides = libnghttp3.so + source = libnghttp3-1.1.0.tar.gz::https://github.com/ngtcp2/nghttp3/archive/refs/tags/v1.1.0.tar.gz + sha256sums = b3ffb23a90442a0eafe8bfbefbc8b4ffb5179d68a7c0b8a416a34cf04b28d7c5 + +pkgname = libnghttp3 diff --git a/libnghttp3/PKGBUILD b/libnghttp3/PKGBUILD new file mode 100644 index 0000000000..af3fae4472 --- /dev/null +++ b/libnghttp3/PKGBUILD @@ -0,0 +1,38 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: kpcyrd + +pkgname=libnghttp3 +pkgver=1.1.0 +pkgrel=1 +pkgdesc="HTTP/3 library written in C" +url='https://github.com/ngtcp2/nghttp3' +arch=(x86_64 powerpc64le powerpc64 powerpc riscv64) +license=('MIT') +provides=('libnghttp3.so') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ngtcp2/nghttp3/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=('b3ffb23a90442a0eafe8bfbefbc8b4ffb5179d68a7c0b8a416a34cf04b28d7c5') + +prepare() { + cd nghttp3-${pkgver} + autoreconf -i +} + +build() { + cd nghttp3-${pkgver} + ./configure \ + --prefix=/usr + make +} + +check() { + cd nghttp3-${pkgver} + make check +} + +package() { + cd nghttp3-${pkgver}/lib + make DESTDIR="${pkgdir}" install + install -Dm644 ../COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}" +} + +# vim: ts=2 sw=2 et: