python-diff-match-patch: update to 20230430
This commit is contained in:
committed by
مهدي شينون (Mehdi Chinoune)
parent
93867407dc
commit
f5f9b56586
@@ -3,36 +3,35 @@
|
||||
_realname=diff-match-patch
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=${MINGW_PACKAGE_PREFIX}-python-${_realname}
|
||||
pkgver=20200713
|
||||
pkgrel=2
|
||||
pkgver=20230430
|
||||
pkgrel=1
|
||||
pkgdesc='A high-performance library in multiple languages that manipulates plain text (mingw-w64)'
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
|
||||
license=('Apache')
|
||||
license=('spdx:Apache-2.0')
|
||||
url='https://github.com//diff-match-patch-python/diff-match-patch'
|
||||
makedepends=(
|
||||
${MINGW_PACKAGE_PREFIX}-python
|
||||
${MINGW_PACKAGE_PREFIX}-python-setuptools)
|
||||
source=("https://github.com/diff-match-patch-python/${_realname}/archive/v${pkgver}.tar.gz")
|
||||
sha256sums=('e82dfc36b44abc8e6142ecd81b09325347c913ab1dfbcbb06fca89f4147cee17')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-flit-core")
|
||||
source=("https://pypi.io/packages/source/${_realname:0:1}/${_realname}/${_realname}-${pkgver}.tar.gz")
|
||||
sha256sums=('953019cdb9c9d2c9e47b5b12bcff3cf4746fc4598eb406076fa1fc27e6a1f15c')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"
|
||||
rm -rf python-build-${CARCH} | true
|
||||
cp -r "${_realname}-${pkgver}" "python-build-${CARCH}"
|
||||
rm -rf python-build-${MSYSTEM} | true
|
||||
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}"
|
||||
}
|
||||
|
||||
build() {
|
||||
msg "Python build for ${CARCH}"
|
||||
cd "${srcdir}/python-build-${CARCH}"
|
||||
${MINGW_PREFIX}/bin/python setup.py build
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/python-build-${CARCH}"
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
||||
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \
|
||||
--root="${pkgdir}" --optimize=1 --skip-build
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=" \
|
||||
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
|
||||
--destdir="${pkgdir}" dist/*.whl
|
||||
|
||||
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user