From 63a177f882c4b0f7793fb03e1026b63e569804e8 Mon Sep 17 00:00:00 2001 From: jgc Date: Tue, 12 Apr 2016 08:34:15 +0000 Subject: [PATCH] upgpkg: libxml2 2.9.3+14+gd5bd2a9-1 Update to git snapshot, includes a security fix and should fix python3 bindings git-svn-id: file:///srv/repos/svn-packages/svn@264697 eb2447ed-0c53-47e4-bac8-5bc4a241df78 --- libxml2/trunk/PKGBUILD | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/libxml2/trunk/PKGBUILD b/libxml2/trunk/PKGBUILD index 5560c2fd1b55..1cf7ca2e50d8 100644 --- a/libxml2/trunk/PKGBUILD +++ b/libxml2/trunk/PKGBUILD @@ -4,34 +4,40 @@ # Contributor: John Proctor pkgname=libxml2 -pkgver=2.9.3 -pkgrel=2 +pkgver=2.9.3+14+gd5bd2a9 +pkgrel=1 pkgdesc="XML parsing library, version 2" arch=(i686 x86_64) license=('MIT') depends=('zlib' 'readline' 'ncurses' 'xz') -makedepends=('python2' 'python') +makedepends=('python2' 'python' 'git') url="http://www.xmlsoft.org/" -source=(ftp://ftp.xmlsoft.org/${pkgname}/${pkgname}-${pkgver}.tar.gz +source=('git://git.gnome.org/libxml2#commit=d5bd2a9a' http://www.w3.org/XML/Test/xmlts20080827.tar.gz) -md5sums=('daece17e045f1c107610e137ab50c179' +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-py3/ - cd ${pkgname}-${pkgver} + cd $pkgname + NOCONFIGURE=1 ./autogen.sh } build() { cd build-py2 - ../$pkgname-$pkgver/configure --prefix=/usr --with-threads --with-history --with-python=/usr/bin/python2 + ../$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-$pkgver/configure --prefix=/usr --with-threads --with-history --with-python=/usr/bin/python + ../$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 make }