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
"
