mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
08a66c4024
new pkg added to fullfill checkdepends new order file python3.order
31 lines
1.0 KiB
Bash
31 lines
1.0 KiB
Bash
pkgbase=python-html5lib
|
|
pkgname=('python2-html5lib' 'python3-html5lib')
|
|
pkgver=0.999
|
|
pkgrel=2
|
|
arch=('any')
|
|
url="https://github.com/html5lib"
|
|
license=('MIT')
|
|
makedepends=('python2' 'python3' 'unzip')
|
|
source=("https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz"
|
|
'LICENSE')
|
|
sha256sums=('77f9897bdef4f668491bdb591c963f3a5004c94d6cad7f86535a6b06ae19b4cf'
|
|
'89807acf2309bd285f033404ee78581602f3cd9b819a16ac2f0e5f60ff4a473e')
|
|
|
|
package_python3-html5lib() {
|
|
pkgdesc="A Python HTML parser/tokenizer based on the WHATWG HTML5 spec"
|
|
depends=('python3')
|
|
cd html5lib-python-${pkgver}
|
|
|
|
python3 setup.py install --root="${pkgdir}"
|
|
install -Dm755 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|
|
|
|
package_python2-html5lib() {
|
|
depends=('python2' 'python2-six')
|
|
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"
|
|
}
|