# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libmicrohttpd
version=0.9.66
build=2sml
homepage="https://www.gnu.org/software/libmicrohttpd/"
download="https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-$version.tar.gz"
desc="Compact C library providing implementation of the HTTP 1.0 and 1.1 web server"
requires="curl"

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

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

build() {
  ./configure \
    --prefix="" \
    --disable-static \
    --disable-https

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
29d6de85d6b3c446962756d337084cc80258ad6f715621047a3d1c4939997d4c0a661d7e403096a6ffdc54b7c94ad699128339cb97a04d73666373ff133ce65d  libmicrohttpd-0.9.66.tar.lz
"
