[arch-commits] Commit in libxml++-5.0/repos (extra-x86_64 extra-x86_64/PKGBUILD)

Jan Steffens heftig at archlinux.org
Thu May 27 16:49:22 UTC 2021


    Date: Thursday, May 27, 2021 @ 16:49:22
  Author: heftig
Revision: 416569

archrelease: copy trunk to extra-x86_64

Added:
  libxml++-5.0/repos/extra-x86_64/
  libxml++-5.0/repos/extra-x86_64/PKGBUILD
    (from rev 416566, libxml++-5.0/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: libxml++-5.0/repos/extra-x86_64/PKGBUILD (from rev 416566, libxml++-5.0/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2021-05-27 16:49:22 UTC (rev 416569)
@@ -0,0 +1,52 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+
+pkgbase=libxml++-5.0
+pkgname=(libxml++-5.0 libxml++-5.0-docs)
+pkgver=5.0.1
+pkgrel=1
+pkgdesc="C++ bindings to libxml2"
+url="https://libxmlplusplus.github.io/libxmlplusplus/"
+arch=(x86_64)
+license=(LGPL)
+depends=(libxml2 gcc-libs)
+makedepends=(git meson mm-common)
+options=(!emptydirs)
+_commit=4caece92ce2d09cfb6fbc87180ec768ccf3bf718  # tags/5.0.1^0
+source=("git+https://github.com/libxmlplusplus/libxmlplusplus#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd libxmlplusplus
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd libxmlplusplus
+}
+
+build() {
+  arch-meson libxmlplusplus build -D maintainer-mode=true
+  meson compile -C build
+}
+
+check() {
+  meson test -C build --print-errorlogs
+}
+
+package_libxml++-5.0() {
+  provides=(libxml++-5.0.so)
+
+  meson install -C build --destdir "$pkgdir"
+
+  # Split -docs
+  mkdir -p docs/usr/share
+  mv -t docs/usr/share "$pkgdir"/usr/share/{devhelp,doc}
+}
+
+package_libxml++-5.0-docs() {
+  pkgdesc+=" (documentation)"
+  depends=()
+  options=(!strip)
+
+  mv -t "$pkgdir" docs/*
+}



More information about the arch-commits mailing list