[arch-commits] Commit in libxml++/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sun Mar 22 10:38:15 UTC 2020
Date: Sunday, March 22, 2020 @ 10:38:15
Author: arojas
Revision: 378308
archrelease: copy trunk to testing-x86_64
Added:
libxml++/repos/testing-x86_64/
libxml++/repos/testing-x86_64/PKGBUILD
(from rev 378307, libxml++/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: libxml++/repos/testing-x86_64/PKGBUILD (from rev 378307, libxml++/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2020-03-22 10:38:15 UTC (rev 378308)
@@ -0,0 +1,52 @@
+# 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
+}
More information about the arch-commits
mailing list