From 71bff367c666f757c466463d2e920b5de80ae0ad Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Sat, 28 Oct 2023 13:28:09 +0000 Subject: [PATCH] python-sphinx-lv2-theme: update to 1.4.2 --- mingw-w64-python-sphinx-lv2-theme/PKGBUILD | 41 +++++++++------------- 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/mingw-w64-python-sphinx-lv2-theme/PKGBUILD b/mingw-w64-python-sphinx-lv2-theme/PKGBUILD index a5bbf9bf15f81..1f4944d43af7d 100644 --- a/mingw-w64-python-sphinx-lv2-theme/PKGBUILD +++ b/mingw-w64-python-sphinx-lv2-theme/PKGBUILD @@ -1,17 +1,20 @@ +# Maintainer: Biswapriyo Nath -_realname=python-sphinx-lv2-theme -pkgbase=mingw-w64-${_realname} -pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" -pkgver=1.4.0 -pkgrel=2 +_realname=sphinx-lv2-theme +_pyname=sphinx_lv2_theme +pkgbase=mingw-w64-python-${_realname} +pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") +pkgver=1.4.2 +pkgrel=1 pkgdesc="A minimal static theme for Sphinx (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( + 'archlinux: python-sphinx-lv2-theme' 'pypi: sphinx-lv2-theme' ) url="https://gitlab.com/lv2/sphinx_lv2_theme" -license=("spdx:ISC") +license=("spdx:0BSD") makedepends=( "${MINGW_PACKAGE_PREFIX}-python-build" "${MINGW_PACKAGE_PREFIX}-python-installer" @@ -19,30 +22,20 @@ makedepends=( "${MINGW_PACKAGE_PREFIX}-python-wheel" ) depends=("${MINGW_PACKAGE_PREFIX}-python-sphinx") -source=("https://files.pythonhosted.org/packages/source/s/sphinx_lv2_theme/sphinx_lv2_theme-${pkgver}.tar.gz") -sha256sums=('68834c4ff84da0e60e2fa8ebe87e83ceb8e5f5ad407d706d3b0e88c6958a92e5') +source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") +sha256sums=('4a099ae20c427179c0cf081f01d5366a554778480d89c2d77a033467e06e7c38') build() { - [[ -d "build-${MSYSTEM}" ]] && rm -rf "build-${MSYSTEM}" - mkdir -p "${srcdir}/build-${MSYSTEM}" - cd "${srcdir}/build-${MSYSTEM}" - - ${MINGW_PREFIX}/bin/python.exe \ - -m build \ - --wheel \ - --no-isolation \ - --outdir . \ - ../sphinx_lv2_theme-${pkgver} + cp -r "${_pyname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation } package() { - cd "${srcdir}/build-${MSYSTEM}" + cd "${srcdir}/python-build-${MSYSTEM}" MSYS2_ARG_CONV_EXCL="--prefix=" \ - ${MINGW_PREFIX}/bin/python.exe -m installer \ - --prefix="${MINGW_PREFIX}" \ - --destdir="${pkgdir}" *.whl + ${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \ + --destdir="${pkgdir}" dist/*.whl - install -vDm 644 ${srcdir}/sphinx_lv2_theme-${pkgver}/LICENSE -t "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/" - install -vDm 644 ${srcdir}/sphinx_lv2_theme-${pkgver}/{NEWS,README.md} -t "${pkgdir}${MINGW_PREFIX}/share/doc/${_realname}/" + install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" }