# Maintainer: PktSurf <smlinux@pktsurf.in>
app=nghttp2
version=1.53.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"

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

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

build() {
  ./configure \
    --prefix= \
    --disable-examples \
    --enable-lib-only \
    --disable-static 

  ( 
    cd lib ; 
    make
    make install DESTDIR=$pkg 
  )

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
fa687279cbc54cbbccca9e75b72250df0ca381ebfaeddf2767be8c00e43c89e012a296f64b3ca07a7ecf3b23729c5c30ba91cd6f411112c435efccb7e4ffc01e  nghttp2-1.53.0.tar.lz
"
