[arch-commits] Commit in (4 files)

Jan de Groot jgc at archlinux.org
Wed Feb 8 12:11:17 UTC 2017


    Date: Wednesday, February 8, 2017 @ 12:11:16
  Author: jgc
Revision: 288243

Rename libxml++ 2.x to libxml++2.6

Added:
  libxml++2.6/
  libxml++2.6/repos/
  libxml++2.6/trunk/
  libxml++2.6/trunk/PKGBUILD

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

Added: libxml++2.6/trunk/PKGBUILD
===================================================================
--- libxml++2.6/trunk/PKGBUILD	                        (rev 0)
+++ libxml++2.6/trunk/PKGBUILD	2017-02-08 12:11:16 UTC (rev 288243)
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 257156 2015-12-22 15:32:55Z jgc $
+# Maintainer: damir <damir at archlinux.org>
+
+pkgbase=libxml++2.6
+pkgname=('libxml++2.6' 'libxml++2.6-docs')
+pkgver=2.40.1
+pkgrel=1
+arch=('i686' 'x86_64')
+license=('LGPL')
+url="http://libxmlplusplus.sourceforge.net/"
+makedepends=('pkgconfig' 'glibmm-docs' 'libxml2' 'glibmm')
+conflicts=('libxml++<3.0')
+options=('!emptydirs')
+source=(http://ftp.gnome.org/pub/GNOME/sources/libxml++/${pkgver:0:4}/libxml++-${pkgver}.tar.xz)
+sha256sums=('4ad4abdd3258874f61c2e2a41d08e9930677976d303653cd1670d3e9f35463e9')
+
+build() {
+  cd "${srcdir}/libxml++-${pkgver}"
+  ./configure --prefix=/usr
+
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+package_libxml++2.6() {
+  pkgdesc="C++ bindings to libxml2"
+  depends=('libxml2' 'glibmm')
+  replaces=('libxml++2')
+  provides=("libxml++2=${pkgver}")
+  conflicts=('libxml++2')
+
+  cd "${srcdir}/libxml++-${pkgver}"
+  make DESTDIR="${pkgdir}" install doc_subdirs=
+}
+
+package_libxml++2.6-docs() {
+  pkgdesc="Developer documentation for libxml++"
+  depends=('glibmm-docs')
+  cd "${srcdir}/libxml++-${pkgver}"
+  make DESTDIR="${pkgdir}" -C docs install
+}



More information about the arch-commits mailing list