Date: Monday, November 7, 2016 @ 12:02:05 Author: bpiotrowski Revision: 280029
archrelease: copy trunk to staging-i686, staging-x86_64 Added: libxml2/repos/staging-i686/ libxml2/repos/staging-i686/PKGBUILD (from rev 280028, libxml2/trunk/PKGBUILD) libxml2/repos/staging-x86_64/ libxml2/repos/staging-x86_64/PKGBUILD (from rev 280028, libxml2/trunk/PKGBUILD) -------------------------+ staging-i686/PKGBUILD | 61 ++++++++++++++++++++++++++++++++++++++++++++++ staging-x86_64/PKGBUILD | 61 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+) Copied: libxml2/repos/staging-i686/PKGBUILD (from rev 280028, libxml2/trunk/PKGBUILD) =================================================================== --- staging-i686/PKGBUILD (rev 0) +++ staging-i686/PKGBUILD 2016-11-07 12:02:05 UTC (rev 280029) @@ -0,0 +1,61 @@ +# $Id$ +# Maintainer: Jan de Groot <j...@archlinux.org> +# Maintainer: Tom Gundersen <t...@jklm.no> +# Contributor: John Proctor <jproc...@prium.net> + +pkgname=libxml2 +pkgver=2.9.4+12+ge905f08 +pkgrel=2 +pkgdesc="XML parsing library, version 2" +arch=(i686 x86_64) +license=('MIT') +depends=('zlib' 'readline' 'ncurses' 'xz') +options=(!makeflags) +makedepends=('python2' 'python' 'git') +url="http://www.xmlsoft.org/" +_commit=e905f08123e4a6e7731549e6f09dadff4cab65bd # master +source=(git://git.gnome.org/libxml2#commit=$_commit + http://www.w3.org/XML/Test/xmlts20080827.tar.gz) +md5sums=('SKIP' + 'ae3d1ebe000a3972afa104ca7f0e1b4a') + +pkgver() { + cd $pkgname + git describe --long | sed -e 's/-/+/g' -e 's/^v//' +} + +prepare() { + mkdir build-py3 + mkdir build-py2 + mv xmlconf build-py2/ + cd $pkgname + NOCONFIGURE=1 ./autogen.sh +} + +build() { + cd build-py2 + ../$pkgname/configure --prefix=/usr --with-threads --with-history --with-python=/usr/bin/python2 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool + make + + cd ../build-py3 + ../$pkgname/configure --prefix=/usr --with-threads --with-history --with-python=/usr/bin/python + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool + PYTHONHASHSEED=0 make +} + +check() { + cd build-py2 + make check +} + +package() { + cd build-py2 + find doc -type f -exec chmod 0644 {} \; + + make DESTDIR="${pkgdir}" install + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" + + cd ../build-py3/python + PYTHONHASHSEED=0 make DESTDIR="${pkgdir}" install +} Copied: libxml2/repos/staging-x86_64/PKGBUILD (from rev 280028, libxml2/trunk/PKGBUILD) =================================================================== --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2016-11-07 12:02:05 UTC (rev 280029) @@ -0,0 +1,61 @@ +# $Id$ +# Maintainer: Jan de Groot <j...@archlinux.org> +# Maintainer: Tom Gundersen <t...@jklm.no> +# Contributor: John Proctor <jproc...@prium.net> + +pkgname=libxml2 +pkgver=2.9.4+12+ge905f08 +pkgrel=2 +pkgdesc="XML parsing library, version 2" +arch=(i686 x86_64) +license=('MIT') +depends=('zlib' 'readline' 'ncurses' 'xz') +options=(!makeflags) +makedepends=('python2' 'python' 'git') +url="http://www.xmlsoft.org/" +_commit=e905f08123e4a6e7731549e6f09dadff4cab65bd # master +source=(git://git.gnome.org/libxml2#commit=$_commit + http://www.w3.org/XML/Test/xmlts20080827.tar.gz) +md5sums=('SKIP' + 'ae3d1ebe000a3972afa104ca7f0e1b4a') + +pkgver() { + cd $pkgname + git describe --long | sed -e 's/-/+/g' -e 's/^v//' +} + +prepare() { + mkdir build-py3 + mkdir build-py2 + mv xmlconf build-py2/ + cd $pkgname + NOCONFIGURE=1 ./autogen.sh +} + +build() { + cd build-py2 + ../$pkgname/configure --prefix=/usr --with-threads --with-history --with-python=/usr/bin/python2 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool + make + + cd ../build-py3 + ../$pkgname/configure --prefix=/usr --with-threads --with-history --with-python=/usr/bin/python + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool + PYTHONHASHSEED=0 make +} + +check() { + cd build-py2 + make check +} + +package() { + cd build-py2 + find doc -type f -exec chmod 0644 {} \; + + make DESTDIR="${pkgdir}" install + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" + + cd ../build-py3/python + PYTHONHASHSEED=0 make DESTDIR="${pkgdir}" install +}