description="Framing layer of HTTP/2 is implemented as a reusable C library"
url="https://nghttp2.org/"

packager="spiky <spiky@nutyx.org>"
contributors=""
license=("MIT")

makedepends=(autoconf automake itstool pkgconf)

name=libnghttp2
version=1.63.0

source=(https://github.com/nghttp2/nghttp2/releases/download/v${version}/nghttp2-$version.tar.xz)

build() {
cd nghttp2-$version
  autoreconf -i
  ./configure \
    --prefix=/usr \
    --disable-examples \
    --disable-python-bindings \
    --enable-lib-only

make

cd lib
make DESTDIR=$PKG install

install -Dm644 ../COPYING $PKG/usr/share/licenses/$name/COPYING
}
