Rename python3 packages to python and update to latest. Round 1

This commit is contained in:
Alexey Pavlov
2019-12-25 14:35:12 +03:00
parent 7fbfc331f9
commit 08a0fc40a0
116 changed files with 1816 additions and 1499 deletions

View File

@@ -2,20 +2,23 @@
_realname=html5lib
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
pkgver=1.0.1
pkgrel=5
pkgrel=1
arch=('any')
pkgdesc="A Python HTML parser/tokenizer based on the WHATWG HTML5 spec (mingw-w64)"
url="https://github.com/html5lib"
license=('MIT')
depends=("${MINGW_PACKAGE_PREFIX}-python3"
"${MINGW_PACKAGE_PREFIX}-python3-six"
"${MINGW_PACKAGE_PREFIX}-python3-webencodings")
makedepends=("${MINGW_PACKAGE_PREFIX}-python3-setuptools")
checkdepends=("${MINGW_PACKAGE_PREFIX}-python3-pytest"
"${MINGW_PACKAGE_PREFIX}-python3-lxml"
"${MINGW_PACKAGE_PREFIX}-python3-mock")
depends=("${MINGW_PACKAGE_PREFIX}-python"
"${MINGW_PACKAGE_PREFIX}-python-six"
"${MINGW_PACKAGE_PREFIX}-python-webencodings")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest"
"${MINGW_PACKAGE_PREFIX}-python-lxml"
"${MINGW_PACKAGE_PREFIX}-python-mock")
_test_commit=c305da74fae50fb018870de7a042da36c1a93b65
source=("${_realname}-${pkgver}.tar.gz::https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz"
"https://github.com/html5lib/html5lib-tests/archive/${_test_commit}.tar.gz")
@@ -29,8 +32,8 @@ prepare() {
cp -r "${srcdir}/html5lib-tests-${_test_commit}" html5lib/tests/testdata
popd
rm -rf python${pver}-build-${CARCH} | true
cp -r "${_realname}-python-${pkgver}" "python${pver}-build-${CARCH}"
rm -rf python-build-${CARCH} | true
cp -r "${_realname}-python-${pkgver}" "python-build-${CARCH}"
}
build() {