Skip to content

Commit

Permalink
upgpkg: libxml2 2.9.3+14+gd5bd2a9-1
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jgc committed Apr 12, 2016
1 parent b15f38e commit 63a177f
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions libxml2/trunk/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,40 @@
# Contributor: John Proctor <[email protected]>

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
}
Expand Down

0 comments on commit 63a177f

Please sign in to comment.