app=libmicrohttpd
version=0.9.66
build=1sml
homepage="https://www.gnu.org/software/libmicrohttpd/"
download="https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.66.tar.gz"
desc="Compact C library providing implementation of the HTTP 1.0 and 1.1 web server"
requires="curl"

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

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

  CPPFLAGS="$CFLAGS -D_GNU_SOURCE" \
  ./configure \
    --prefix="" \
    --disable-static \
    --disable-https \
    --disable-nls 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
59cc56a9511d9d1c05647a57d920a16d0aaa0d0523d0241ceb88641d18bd95fdb3bb5a60fd648ac54a6f4323a673a3145e520a2fe9e124e78973ff6dac3ad89a  libmicrohttpd-0.9.66.tar.gz
"
