1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
4 pkgname=(libxml++-5.0 libxml++-5.0-docs)
7 pkgdesc="C++ bindings to libxml2"
8 url="https://libxmlplusplus.github.io/libxmlplusplus/"
11 depends=(libxml2 gcc-libs)
12 makedepends=(git meson mm-common)
14 _commit=4caece92ce2d09cfb6fbc87180ec768ccf3bf718 # tags/5.0.1^0
15 source=("git+https://github.com/libxmlplusplus/libxmlplusplus#commit=$_commit")
20 git describe --tags | sed 's/-/+/g'
28 arch-meson libxmlplusplus build -D maintainer-mode=true
29 meson compile -C build
33 meson test -C build --print-errorlogs
36 package_libxml++-5.0() {
37 provides=(libxml++-5.0.so)
39 meson install -C build --destdir "$pkgdir"
42 mkdir -p docs/usr/share
43 mv -t docs/usr/share "$pkgdir"/usr/share/{devhelp,doc}
46 package_libxml++-5.0-docs() {
47 pkgdesc+=" (documentation)"
51 mv -t "$pkgdir" docs/*