diff options
author | root <root@rshg054.dnsready.net> | 2012-08-11 00:02:44 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-08-11 00:02:44 +0000 |
commit | 073a889144d77058f1eff2100ad48a538bdc0422 (patch) | |
tree | 96e013a0c34f142dccb769073164cd0fd82dea95 /testing/libxml2 | |
parent | 9f2bff24c46fba67eca7c8125306a9dcd8ea8c73 (diff) |
Sat Aug 11 00:02:44 UTC 2012
Diffstat (limited to 'testing/libxml2')
-rw-r--r-- | testing/libxml2/PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/libxml2/PKGBUILD b/testing/libxml2/PKGBUILD new file mode 100644 index 000000000..38700a682 --- /dev/null +++ b/testing/libxml2/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 165055 2012-08-09 21:18:17Z jgc $ +# Maintainer: Jan de Groot <jgc@archlinux.org> +# Contributor: John Proctor <jproctor@prium.net> + +pkgname=libxml2 +pkgver=2.8.0 +pkgrel=1 +pkgdesc="XML parsing library, version 2" +arch=(i686 x86_64) +license=('custom') +depends=('zlib>=1.2.4' 'readline>=6.1' 'ncurses>=5.7' 'xz') +makedepends=('python2') +options=('!libtool') +url="http://www.xmlsoft.org/" +source=(ftp://ftp.xmlsoft.org/${pkgname}/${pkgname}-${pkgver}.tar.gz + http://www.w3.org/XML/Test/xmlts20080205.tar.gz) +md5sums=('c62106f02ee00b6437f0fb9d370c1093' + 'b255be9a1c7f7021e52448e4ec8d7a0d') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + sed -e 's|/usr/bin/python -u|/usr/bin/python2 -u|g' -e 's|/usr/bin/python$|/usr/bin/python2|g' -i python/tests/*.py + ./configure --prefix=/usr --with-threads --with-history \ + --with-python=/usr/bin/python2 + make +} + +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + mv "${srcdir}/xmlconf" . + make check +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" +} |