* add libngtcp2

This commit is contained in:
Alexander Baldeck 2024-01-17 15:32:24 +01:00
parent b3a4b21f54
commit 85aa7b6ba8
2 changed files with 53 additions and 0 deletions

12
libngtcp2/.SRCINFO Normal file
View File

@ -0,0 +1,12 @@
pkgbase = libngtcp2
pkgdesc = Implementation of IETF QUIC protocol
pkgver = 1.1.0
pkgrel = 1
url = https://github.com/ngtcp2/ngtcp2
arch = x86_64
license = MIT
provides = libngtcp2.so
source = libngtcp2-1.1.0.tar.gz::https://github.com/ngtcp2/ngtcp2/archive/refs/tags/v1.1.0.tar.gz
sha256sums = 987d784643edea4f2859c405f7dfbc53871a9f7ae5fcddf5fb12ec5dfce1ef22
pkgname = libngtcp2

41
libngtcp2/PKGBUILD Normal file
View File

@ -0,0 +1,41 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
pkgname=libngtcp2
pkgver=1.1.0
pkgrel=1
pkgdesc='Implementation of IETF QUIC protocol'
url='https://github.com/ngtcp2/ngtcp2'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
license=('MIT')
depends=(libnghttp3)
provides=('libngtcp2.so')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ngtcp2/ngtcp2/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('987d784643edea4f2859c405f7dfbc53871a9f7ae5fcddf5fb12ec5dfce1ef22')
prepare() {
cd ngtcp2-${pkgver}
autoreconf -i
}
build() {
cd ngtcp2-${pkgver}
# add --with-openssl after quic was released in openssl mainline
./configure \
--prefix=/usr \
--without-openssl
make
}
check() {
cd ngtcp2-${pkgver}
make check
}
package() {
cd ngtcp2-${pkgver}/lib
make DESTDIR="${pkgdir}" install
install -Dm644 ../COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim: ts=2 sw=2 et: