APP=nghttp2
VERSION=1.41.0
BUILD=1sml
HOMEPAGE='https://nghttp2.org/'
DOWNLOAD='https://github.com/nghttp2/nghttp2/releases/download/v1.41.0/nghttp2-1.41.0.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
"
