app=nghttp2
version=1.41.0
build=1sml
homepage="https://nghttp2.org/"
download="https://github.com/nghttp2/nghttp2/releases/download/v$version/nghttp2-$version.tar.xz"
desc="framing layer of HTTP/2 web protocol implemented as a form of a reusable C library"
requires="musl"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version 
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-examples \
    --disable-python-bindings \
    --enable-lib-only \
    --disable-static 

  make
  cd lib
  make install DESTDIR=$pkg 

  cd ..
  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
000c8033b882e0e071fdfdadbd808fba8556e83efafe397e5f28dcd3fe2c32fa33eceab502a907d7023084f06ae141dfd85ecee9fdc55037fb1b242df94e976a  nghttp2-1.41.0.tar.lz
"
