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"

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --enable-static=no \
    --enable-shared=yes \
    --with-ssl=openssl

  make
  make install DESTDIR=$pkg

  cp README.md $pkgdocs/

  mkfinalpkg
}

sha512sums="
1e402b40a0445f68ed24d2697ee60d21636f61ebc98edcde37ff9e26c54430acabf3969ac22a942d1dd51bddee0f312c04073b423b0af3a3e7c9bf60cd53e48c  neon-0.31.2.tar.gz
"
