[arch-commits] Commit in libxml++/repos (4 files)
Jan de Groot
jgc at archlinux.org
Mon Feb 6 14:51:58 UTC 2017
Date: Monday, February 6, 2017 @ 14:51:58
Author: jgc
Revision: 288135
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
libxml++/repos/staging-i686/
libxml++/repos/staging-i686/PKGBUILD
(from rev 288134, libxml++/trunk/PKGBUILD)
libxml++/repos/staging-x86_64/
libxml++/repos/staging-x86_64/PKGBUILD
(from rev 288134, libxml++/trunk/PKGBUILD)
-------------------------+
staging-i686/PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++
staging-x86_64/PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 112 insertions(+)
Copied: libxml++/repos/staging-i686/PKGBUILD (from rev 288134, libxml++/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2017-02-06 14:51:58 UTC (rev 288135)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: damir <damir at archlinux.org>
+
+pkgbase=libxml++
+pkgname=('libxml++' 'libxml++-docs')
+pkgver=3.0.1+4+g2af973f
+pkgrel=1
+arch=('i686' 'x86_64')
+license=('LGPL')
+url="http://libxmlplusplus.sourceforge.net/"
+makedepends=('pkgconfig' 'glibmm-docs' 'libxml2' 'glibmm' git mm-common)
+options=('!emptydirs')
+_commit=2af973ff59b2151e0783bbe4155816ce88d0c8b0 # libxml++-3.0
+source=("git+https://git.gnome.org/browse/libxml++#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgbase
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd $pkgbase
+ NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+ cd "${srcdir}/$pkgbase"
+ ./configure --prefix=/usr
+
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+check() {
+ cd "${srcdir}/$pkgbase"
+ make check
+}
+
+package_libxml++() {
+ pkgdesc="C++ bindings to libxml2"
+ depends=('libxml2' 'glibmm')
+ replaces=('libxml++2')
+ provides=("libxml++2=${pkgver}")
+ conflicts=('libxml++2')
+
+ cd "${srcdir}/$pkgbase"
+ make DESTDIR="${pkgdir}" install doc_subdirs=
+}
+
+package_libxml++-docs() {
+ pkgdesc="Developer documentation for libxml++"
+ depends=('glibmm-docs')
+ cd "${srcdir}/$pkgbase"
+ make DESTDIR="${pkgdir}" -C docs install
+}
Copied: libxml++/repos/staging-x86_64/PKGBUILD (from rev 288134, libxml++/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2017-02-06 14:51:58 UTC (rev 288135)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: damir <damir at archlinux.org>
+
+pkgbase=libxml++
+pkgname=('libxml++' 'libxml++-docs')
+pkgver=3.0.1+4+g2af973f
+pkgrel=1
+arch=('i686' 'x86_64')
+license=('LGPL')
+url="http://libxmlplusplus.sourceforge.net/"
+makedepends=('pkgconfig' 'glibmm-docs' 'libxml2' 'glibmm' git mm-common)
+options=('!emptydirs')
+_commit=2af973ff59b2151e0783bbe4155816ce88d0c8b0 # libxml++-3.0
+source=("git+https://git.gnome.org/browse/libxml++#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgbase
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd $pkgbase
+ NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+ cd "${srcdir}/$pkgbase"
+ ./configure --prefix=/usr
+
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+check() {
+ cd "${srcdir}/$pkgbase"
+ make check
+}
+
+package_libxml++() {
+ pkgdesc="C++ bindings to libxml2"
+ depends=('libxml2' 'glibmm')
+ replaces=('libxml++2')
+ provides=("libxml++2=${pkgver}")
+ conflicts=('libxml++2')
+
+ cd "${srcdir}/$pkgbase"
+ make DESTDIR="${pkgdir}" install doc_subdirs=
+}
+
+package_libxml++-docs() {
+ pkgdesc="Developer documentation for libxml++"
+ depends=('glibmm-docs')
+ cd "${srcdir}/$pkgbase"
+ make DESTDIR="${pkgdir}" -C docs install
+}
More information about the arch-commits
mailing list