# Description: a C/C++ client library for the CMIS protocol
# URL: https://github.com/tdf/libcmis
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: boost brotli cppunit gnutls keyutils libpsl libxml2 openldap

name=libcmis
version=0.6.2
release=2
source=(https://github.com/tdf/libcmis/releases/download/v${version}/$name-$version.tar.gz
  boost-1.86.0.patch
  libxml2-2.12.patch)

build() {
  cd $name-$version

  patch -Np1 -i $SRC/libxml2-2.12.patch
  patch -Np1 -i $SRC/boost-1.86.0.patch

  ./configure --prefix=/usr \
    --disable-werror \
    --with-man=no
  make
  make DESTDIR=$PKG install
}
