# Maintainer: PktSurf <smlinux@pktsurf.in>
app=neon
version=0.31.2
build=1sml
homepage="https://notroj.github.io/neon/"
download="https://notroj.github.io/neon/neon-$version.tar.gz"
desc="HTTP and WebDav client library with a C interface"
requires="expat zlib openssl"

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

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

build() {
  ./configure \
    --prefix= \
    --enable-static=no \
    --enable-shared=yes \
    --with-ssl=openssl

  make
  make install DESTDIR=$pkg

  cp README.md $pkgdocs/

  mkfinalpkg
}

sha512sums="
760b4f0624d28411089af994db900c7ec5918050f273c3f5d2105c0e0bef4c5d496e4391e680ffc8047011534244283943a53e55174fbe048d3c258364622fc6  neon-0.31.2.tar.lz
"
