# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=libxml++ pkgver=3.2.2 pkgrel=0 pkgdesc="C++ wrapper for the libxml XML parser library" url="http://libxmlplusplus.sourceforge.net/" arch="all" license="LGPL-2.1-or-later" makedepends="meson libxml2-dev glibmm-dev python3 perl doxygen graphviz" subpackages="$pkgname-dev $pkgname-doc" source="https://download.gnome.org/sources/libxml++/${pkgver%.[0-9]*}/libxml++-$pkgver.tar.xz" build() { abuild-meson \ -Dbuild-tests=true \ -Dbuild-examples=false \ -Dbuild-documentation=true \ . output meson compile ${JOBS:+-j ${JOBS}} -C output } check() { meson test --no-rebuild -v -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output ln -s libxml++-3.0.pc "$pkgdir"/usr/lib/pkgconfig/libxml++.pc } sha512sums="c000d438aae487b92de2a1c60277d5e3ad3bf93824fc8fa99684778ea2334a45bf621f8d253190bdadedc591772d9beee53a98ebc3e20015d2ca68e097c0a253 libxml++-3.2.2.tar.xz"