app=libnxml
version=0.18.3
build=1sml
homepage="https://github.com/bakulf/libnxml"
desc="C library for parsing XML 1.0 and 1.1 files or streams"
requires="zlib curl nghttp2 libidn2 libssh2 openssl brotli libunistring"

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

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

  ./configure \
    --prefix="" \
    --disable-static \
    $builddist

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
6e3ac6cfa9fadbf5d9ffd6c1ee671b4862fc4cd02211b025c9a52f10872490e2e365bd3524a830cb1a091340a9bb48b7468720018cb303b2d83a861326dd635a  libnxml-0.18.3.tar.lz
"
