From fca2dc216790eeebfbf3a7ac7c0f7591624cc403 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Wed, 19 Jun 2024 07:36:26 +0000 Subject: [PATCH] python-dulwich: update to 0.22.1 --- mingw-w64-python-dulwich/PKGBUILD | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/mingw-w64-python-dulwich/PKGBUILD b/mingw-w64-python-dulwich/PKGBUILD index 45253221ac..1ce40741fa 100644 --- a/mingw-w64-python-dulwich/PKGBUILD +++ b/mingw-w64-python-dulwich/PKGBUILD @@ -3,13 +3,15 @@ _realname=dulwich pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") -pkgver=0.21.7 +pkgver=0.22.1 pkgrel=1 pkgdesc="Python Git Library (mingw-w64)" arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url='https://www.dulwich.io/' +msys2_repository_url='https://github.com/jelmer/dulwich' msys2_references=( + 'archlinux: python-dulwich' 'pypi: dulwich' ) license=('spdx:Apache-2.0 OR spdx:GPL-2.0-or-later') @@ -18,19 +20,16 @@ depends=("${MINGW_PACKAGE_PREFIX}-python" makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" "${MINGW_PACKAGE_PREFIX}-python-installer" "${MINGW_PACKAGE_PREFIX}-python-setuptools" + "${MINGW_PACKAGE_PREFIX}-python-setuptools-rust" "${MINGW_PACKAGE_PREFIX}-python-wheel" + "${MINGW_PACKAGE_PREFIX}-rust" "${MINGW_PACKAGE_PREFIX}-cc") -options=(!strip) +options=('!strip') source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") -sha256sums=('a9e9c66833cea580c3ac12927e4b9711985d76afca98da971405d414de60e968') - -prepare() { - rm -rf "${srcdir}"/python-build-${MSYSTEM} || true - cp -r "${srcdir}/${_realname}-${pkgver}" "${srcdir}/python-build-${MSYSTEM}" -} +sha256sums=('e36d85967cfbf25da1c7bc3d6921adc5baa976969d926aaf1582bd5fd7e94758') build() { - cd "${srcdir}/python-build-${MSYSTEM}" + cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation } @@ -47,5 +46,9 @@ package() { ${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \ --destdir="${pkgdir}" dist/*.whl + for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*; do + sed -e '1 { s/^#!.*python.*$/#!\/usr\/bin\/env python3/ }' -i ${_f} + done + install -Dm644 COPYING "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" }