diff options
Diffstat (limited to 'extra/python-lxml')
-rw-r--r-- | extra/python-lxml/PKGBUILD | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/extra/python-lxml/PKGBUILD b/extra/python-lxml/PKGBUILD index 9dea69b9a..f0875d3ee 100644 --- a/extra/python-lxml/PKGBUILD +++ b/extra/python-lxml/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 169019 2012-10-17 10:20:31Z allan $ +# $Id: PKGBUILD 169319 2012-10-19 09:25:22Z andrea $ # Maintainer: -pkgname=('python-lxml' 'python2-lxml') +pkgbase=python-lxml +pkgname=('python-lxml' 'python2-lxml' 'python-lxml-docs') pkgver=3.0 -pkgrel=1 -pkgdesc="Python binding for the libxml2 and libxslt libraries" +pkgrel=2 arch=('i686' 'x86_64') license=('BSD' 'custom') url="http://lxml.de/" @@ -14,18 +14,20 @@ sha1sums=('8dbbd03a637bb563113cf07049a4d5a109369441' 'b38447fd3f9cfb30b4d56ffe3bec42739afb2947') check() { - cd "${srcdir}"/lxml-$pkgver + cd lxml-$pkgver make PYTHON=python2 test make PYTHON=python test } package_python2-lxml() { + pkgdesc="Python2 binding for the libxml2 and libxslt libraries" depends=('python2' 'libxslt') - optdepends=('python2-beautifulsoup3: support for parsing not well formed HTML') + optdepends=('python2-beautifulsoup3: support for parsing not well formed HTML' + 'python-lxml-docs: offline docs') - cd "${srcdir}"/lxml-$pkgver + cd lxml-$pkgver python2 setup.py install --root="${pkgdir}" --optimize=1 - + install -Dm644 LICENSES.txt \ "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE install -Dm644 doc/licenses/BSD.txt \ @@ -35,11 +37,14 @@ package_python2-lxml() { } package_python-lxml() { + pkgdesc="Python3 binding for the libxml2 and libxslt libraries" depends=('python' 'libxslt') + optdepends=('python-cssselect' + 'python-lxml-docs: offline docs') - cd "${srcdir}"/lxml-$pkgver + cd lxml-$pkgver python setup.py install --root="${pkgdir}" --optimize=1 - + install -Dm644 LICENSES.txt \ "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE install -Dm644 doc/licenses/BSD.txt \ @@ -47,3 +52,12 @@ package_python-lxml() { install -Dm644 doc/licenses/elementtree.txt \ "${pkgdir}"/usr/share/licenses/$pkgname/elementtree.txt } + +package_python-lxml-docs() { + pkgdesc="Python binding for the libxml2 and libxslt libraries (docs)" + options=('docs') + + cd lxml-$pkgver + install -d "${pkgdir}"/usr/share/doc/${pkgbase} + cp -r doc/html "${pkgdir}"/usr/share/doc/${pkgbase} +} |