2014-08-28 03:05:15 +08:00
|
|
|
pkgbase=python-html5lib
|
|
|
|
pkgname=('python2-html5lib' 'python3-html5lib')
|
2017-02-24 21:28:20 +08:00
|
|
|
pkgver=0.999999999
|
2017-02-26 10:08:22 +08:00
|
|
|
pkgrel=2
|
2014-08-28 03:05:15 +08:00
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/html5lib"
|
|
|
|
license=('MIT')
|
2017-02-26 10:08:22 +08:00
|
|
|
makedepends=('python2' 'python3' 'unzip' 'python2-setuptools' 'python3-setuptools'
|
|
|
|
'python2-webencodings' 'python3-webencodings' 'python2-six' 'python3-six')
|
2014-08-28 03:05:15 +08:00
|
|
|
source=("https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz"
|
|
|
|
'LICENSE')
|
2017-02-24 21:28:20 +08:00
|
|
|
sha256sums=('05c0f1ba235776060ded5093c365483d50deacdd7cabc57b6996d6e2480a4626'
|
2014-08-28 03:05:15 +08:00
|
|
|
'89807acf2309bd285f033404ee78581602f3cd9b819a16ac2f0e5f60ff4a473e')
|
|
|
|
|
|
|
|
package_python3-html5lib() {
|
|
|
|
pkgdesc="A Python HTML parser/tokenizer based on the WHATWG HTML5 spec"
|
2017-02-26 10:08:22 +08:00
|
|
|
depends=('python3' 'python3-six' 'python3-webencodings')
|
2014-08-28 03:05:15 +08:00
|
|
|
cd html5lib-python-${pkgver}
|
|
|
|
|
|
|
|
python3 setup.py install --root="${pkgdir}"
|
|
|
|
install -Dm755 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_python2-html5lib() {
|
2017-02-26 10:08:22 +08:00
|
|
|
depends=('python2' 'python2-six' 'python2-webencodings')
|
2014-08-28 03:05:15 +08:00
|
|
|
pkgdesc="A Python2 HTML parser/tokenizer based on the WHATWG HTML5 spec"
|
|
|
|
cd html5lib-python-${pkgver}
|
|
|
|
|
|
|
|
python2 setup.py install --root=${pkgdir}
|
|
|
|
install -Dm755 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|