ayaports/unmaintained/py2-html5-parser/APKBUILD
build@apk-groulx 7c2d413554 3.17 cleanup
2023-01-11 00:40:45 +00:00

34 lines
956 B
Text

# Maintainer: Jelle van der Waa <jelle@archlinux.org>
# Maintainer: Eli Schwartz <eschwartz@archlinux.org>
_pkgname="html5-parser"
pkgname='py2-html5-parser'
pkgver=0.4.9
pkgrel=0
pkgdesc="Fast C based HTML 5 parsing for python"
arch='x86_64'
url="https://github.com/kovidgoyal/${_pkgname}"
license='Apache'
checkdepends='py2-beautifulsoup4'
makedepends='py2-chardet py2-lxml py2-setuptools libxml2-dev python2-dev'
source="${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
build() {
cd "${srcdir}"/${_pkgname}-${pkgver}
python2 setup.py build
}
check() {
cd "${srcdir}"/${_pkgname}-${pkgver}
python2 setup.py test
}
package() {
cd "${srcdir}"/${_pkgname}-${pkgver}
python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
sha512sums="31d0499e690c1cfe86fcaabddf4a5842b504706f6d95268dfad4ce80a8b91df6ba779c27dd4fe877232f6664142ed04b9d2af0aff601aa1855f91d9720adf512 py2-html5-parser-0.4.9.tar.gz"