git » libngtcp2.git » main » tree

[main] / PKGBUILD

# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>

pkgname=libngtcp2
pkgver=1.4.0
pkgrel=1
pkgdesc='Implementation of IETF QUIC protocol'
url='https://github.com/ngtcp2/ngtcp2'
arch=('armv7h' 'aarch64')
license=('MIT')
depends=('glibc')
provides=('libngtcp2.so')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ngtcp2/ngtcp2/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('c9678997e5ec9b7e35458419f7482440a3161ed1ed06e2882d324a69113fe52d')
b2sums=('45d4c436d0fc9a00b6032529f289bbcd5276aeba81767b690c440401cb3b424c2f56b68b5308a071caca6fb0807199f32420bb974c032bfd0aa34d5dc1228ac9')

prepare() {
  cd ngtcp2-${pkgver}
  autoreconf -i
}

build() {
  cd ngtcp2-${pkgver}
  # add --with-openssl after quic was released in openssl mainline
  ./configure \
    --prefix=/usr 
  make
}

package() {
  cd ngtcp2-${pkgver}/lib
  make DESTDIR="${pkgdir}" install
  install -Dm644 ../COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

# vim: ts=2 sw=2 et: