From 7576f230cf1c0a1b74adb4f0e349ee7daf2074b4 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Sun, 13 Apr 2025 10:32:22 +0530 Subject: [PATCH] python-sphinxcontrib-programoutput: Add more metadata, use tarball from pypi --- mingw-w64-python-sphinxcontrib-programoutput/PKGBUILD | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mingw-w64-python-sphinxcontrib-programoutput/PKGBUILD b/mingw-w64-python-sphinxcontrib-programoutput/PKGBUILD index 5308e26cc1..c999f4934e 100644 --- a/mingw-w64-python-sphinxcontrib-programoutput/PKGBUILD +++ b/mingw-w64-python-sphinxcontrib-programoutput/PKGBUILD @@ -8,7 +8,8 @@ pkgrel=1 pkgdesc="Sphinx extension to insert the output of arbitrary commands into documents (mingw-w64)" arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/NextThought/sphinxcontrib-programoutput' +url='https://sphinxcontrib-programoutput.readthedocs.io/' +msys2_repository_url='https://github.com/OpenNTI/sphinxcontrib-programoutput' msys2_references=( 'purl: pkg:pypi/sphinxcontrib-programoutput' ) @@ -17,13 +18,11 @@ depends=("${MINGW_PACKAGE_PREFIX}-python-sphinx") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" "${MINGW_PACKAGE_PREFIX}-python-installer" "${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("$url/archive/$pkgver/${_realname}-${pkgver}.tar.gz") -sha256sums=('19cef6383bd9ce2ed316258d6f22e42539435fe92964cbbe065c6e8794d0cd68') +source=("https://pypi.org/packages/source/${_realname::1}/${_realname/-/_}/${_realname/-/_}-${pkgver}.tar.gz") +sha256sums=('09e68b6411d937a80b6085f4fdeaa42e0dc5555480385938465f410589d2eed8') build() { - msg "Python build for ${MSYSTEM}" - cd "${srcdir}" - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "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 }