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

Jan Steffens heftig at archlinux.org
Fri Oct 2 17:19:41 UTC 2020


    Date: Friday, October 2, 2020 @ 17:19:40
  Author: heftig
Revision: 397095

archrelease: copy trunk to extra-x86_64

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-02 17:19:40 UTC (rev 397094)
+++ PKGBUILD	2020-10-02 17:19:40 UTC (rev 397095)
@@ -1,52 +0,0 @@
-# Maintainer: damir <damir at archlinux.org>
-
-pkgbase=libxml++
-pkgname=('libxml++' 'libxml++-docs')
-pkgver=3.2.0
-pkgrel=1
-arch=('x86_64')
-license=('LGPL')
-url="http://libxmlplusplus.sourceforge.net/"
-makedepends=('glibmm-docs' 'libxml2' 'glibmm' 'git' 'mm-common')
-options=('!emptydirs')
-_commit=50c5efe0bcce3fa5273afbc832b1424b352469c9  # 3.2.0
-source=("git+https://github.com/libxmlplusplus/libxmlplusplus#commit=$_commit")
-sha256sums=('SKIP')
-
-pkgver() {
-  cd libxmlplusplus
-  git describe --tags | sed 's/-/+/g'
-}
-
-prepare() {
-  cd libxmlplusplus
-  NOCONFIGURE=1 ./autogen.sh
-}
-
-build() {
-  cd libxmlplusplus
-  ./configure --prefix=/usr
-
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-  make
-}
-
-check() {
-  cd libxmlplusplus
-  make check
-}
-
-package_libxml++() {
-  pkgdesc="C++ bindings to libxml2"
-  depends=('libxml2' 'glibmm')
-
-  cd libxmlplusplus
-  make DESTDIR="${pkgdir}" install doc_subdirs=
-}
-
-package_libxml++-docs() {
-  pkgdesc="Developer documentation for libxml++"
-  depends=('glibmm-docs')
-  cd libxmlplusplus
-  make DESTDIR="${pkgdir}" -C docs install
-}

Copied: libxml++/repos/extra-x86_64/PKGBUILD (from rev 397093, libxml++/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-10-02 17:19:40 UTC (rev 397095)
@@ -0,0 +1,54 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+
+pkgbase=libxml++
+pkgname=(libxml++ libxml++-docs)
+pkgver=3.2.2
+pkgrel=1
+pkgdesc="C++ bindings to libxml2"
+url="https://libxmlplusplus.github.io/libxmlplusplus/"
+arch=(x86_64)
+license=(LGPL)
+depends=(libxml2 glibmm)
+makedepends=(glibmm-docs git meson mm-common)
+options=(!emptydirs)
+_commit=ba03d1ea29c1b6a8757be9b56637f19d1385ad3e  # tags/3.2.2^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
+  meson compile -C build
+}
+
+check() {
+  meson test -C build --print-errorlogs
+}
+
+# Do not remove the space before the () or commitpkg will
+# accidentally to run this function on the system (!!!) 
+package_libxml++ () {
+  provides=(libxml++-3.0.so)
+
+  DESTDIR="$pkgdir" meson install -C build
+
+  # Split -docs
+  mkdir -p docs/usr/share
+  mv -t docs/usr/share "$pkgdir"/usr/share/{devhelp,doc}
+}
+
+package_libxml++-docs() {
+  pkgdesc+=" (documentation)"
+  depends=(glibmm-docs)
+
+  mv -t "$pkgdir" docs/*
+}



More information about the arch-commits mailing list