[arch-commits] Commit in libxml++2.6/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Oct 2 17:17:53 UTC 2020
Date: Friday, October 2, 2020 @ 17:17:53
Author: heftig
Revision: 397093
2.42.0-1
Modified:
libxml++2.6/trunk/PKGBUILD
----------+
PKGBUILD | 65 +++++++++++++++++++++++++++++++++++++------------------------
1 file changed, 40 insertions(+), 25 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-10-02 17:17:47 UTC (rev 397092)
+++ PKGBUILD 2020-10-02 17:17:53 UTC (rev 397093)
@@ -1,39 +1,54 @@
-# Maintainer: damir <damir at archlinux.org>
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: damir <damir at archlinux.org>
pkgbase=libxml++2.6
pkgname=('libxml++2.6' 'libxml++2.6-docs')
-pkgver=2.40.1
-pkgrel=4
-arch=('x86_64')
-license=('LGPL')
-url="http://libxmlplusplus.sourceforge.net/"
-makedepends=('pkgconfig' 'glibmm-docs' 'libxml2' 'glibmm')
-options=('!emptydirs')
-source=(https://ftp.gnome.org/pub/GNOME/sources/libxml++/${pkgver:0:4}/libxml++-${pkgver}.tar.xz)
-sha256sums=('4ad4abdd3258874f61c2e2a41d08e9930677976d303653cd1670d3e9f35463e9')
+pkgver=2.42.0
+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=8f804be36d53729190062346fb32d727b49a2448 # tags/2.42.0^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() {
- cd "${srcdir}/libxml++-${pkgver}"
- ./configure --prefix=/usr
+ arch-meson libxmlplusplus build
+ meson compile -C build
+}
- sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
- make
+check() {
+ meson test -C build --print-errorlogs
}
package_libxml++2.6() {
- pkgdesc="C++ bindings to libxml2"
- depends=('libxml2' 'glibmm')
- replaces=('libxml++2')
- provides=("libxml++2=${pkgver}")
- conflicts=('libxml++2')
+ provides=("libxml++2=$pkgver" libxml++-2.6.so)
+ replaces=(libxml++2)
+ conflicts=(libxml++2)
- cd "${srcdir}/libxml++-${pkgver}"
- make DESTDIR="${pkgdir}" install doc_subdirs=
+ 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++2.6-docs() {
- pkgdesc="Developer documentation for libxml++"
- depends=('glibmm-docs')
- cd "${srcdir}/libxml++-${pkgver}"
- make DESTDIR="${pkgdir}" -C docs install
+ pkgdesc+=" (documentation)"
+ depends=(glibmm-docs)
+
+ mv -t "$pkgdir" docs/*
}
More information about the arch-commits
mailing list