[arch-commits] Commit in libxml2/trunk (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Tue Apr 12 08:34:15 UTC 2016
Date: Tuesday, April 12, 2016 @ 10:34:15
Author: jgc
Revision: 264697
upgpkg: libxml2 2.9.3+14+gd5bd2a9-1
Update to git snapshot, includes a security fix and should fix python3 bindings
Modified:
libxml2/trunk/PKGBUILD
----------+
PKGBUILD | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-04-12 08:03:30 UTC (rev 264696)
+++ PKGBUILD 2016-04-12 08:34:15 UTC (rev 264697)
@@ -4,34 +4,40 @@
# Contributor: John Proctor <jproctor at prium.net>
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
}
More information about the arch-commits
mailing list