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/"
21 _commit=81da7ce28c1aa71a18d5540b9d0d8cf2baba93b0 # tags/5.0.3^0
22 source=("git+https://github.com/libxmlplusplus/libxmlplusplus#commit=$_commit")
27 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
35 arch-meson libxmlplusplus build -D maintainer-mode=true
36 meson compile -C build
40 meson test -C build --print-errorlogs
43 package_libxml++-5.0() {
44 provides=(libxml++-5.0.so)
46 meson install -C build --destdir "$pkgdir"
49 mkdir -p docs/usr/share
50 mv -t docs/usr/share "$pkgdir"/usr/share/{devhelp,doc}
53 package_libxml++-5.0-docs() {
54 pkgdesc+=" (documentation)"
58 mv -t "$pkgdir" docs/*
61 # vim:set sw=2 sts=-1 et: