Date: Friday, January 20, 2017 @ 14:24:01 Author: demize Revision: 208128
archrelease: copy trunk to community-any Added: python-html5lib-7-9s/repos/community-any/ python-html5lib-7-9s/repos/community-any/PKGBUILD (from rev 208127, python-html5lib-7-9s/trunk/PKGBUILD) ----------+ PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) Copied: python-html5lib-7-9s/repos/community-any/PKGBUILD (from rev 208127, python-html5lib-7-9s/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2017-01-20 14:24:01 UTC (rev 208128) @@ -0,0 +1,54 @@ +# Maintainer: Johannes Löthberg <johan...@kyriasis.com> +# Contributor: Erol V. Aktay <e.ak...@gmail.com> +# Contributor: Daniel J Griffiths <ghost1...@archlinux.us> +# Contributor: Philipp A. <flying-sh...@web.de> + +pkgbase=python-html5lib-7-9s +pkgname=(python-html5lib-7-9s python2-html5lib-7-9s) +pkgver=0.9999999 +pkgrel=2 + +pkgdesc="Python HTML parser/tokenizer based on the WHATWG HTML5 spec (v0.9999999)" +url="https://github.com/html5lib" +arch=('any') +license=('MIT') + +makedepends=('python' + 'python-setuptools' + 'python-webencodings' + 'python2' + 'python2-setuptools' + 'python2-webencodings') +checkdepends=('python-six' + 'python-pytest' + 'python-mock' + 'python-lxml' + 'python2-lxml') + +source=("python-html5lib-$pkgver.tar.gz::https://github.com/html5lib/html5lib-python/archive/$pkgver.tar.gz") + +md5sums=('2ca78b1ec5852779bc121a97da6e8d4d') + +prepare() { + cp -a html5lib-python-$pkgver{,-python2} +} + +package_python-html5lib-7-9s() { + depends=('python-webencodings') + provides=("python-html5lib=$pkgver") + conflicts=("python-html5lib") + + cd html5lib-python-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm755 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-html5lib-7-9s() { + depends=('python2-webencodings') + provides=("python2-html5lib=$pkgver") + conflicts=("python2-html5lib") + + cd html5lib-python-$pkgver-python2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -Dm755 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}