From ac6cb9b0ed6ae8fa8304552d93da4919e5dfb4ae Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Tue, 18 Nov 2025 16:42:40 +0100 Subject: [PATCH] python-passagemath-environment: add version 10.6.36 (new package) --- mingw-w64-passagemath-environment/PKGBUILD | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 mingw-w64-passagemath-environment/PKGBUILD diff --git a/mingw-w64-passagemath-environment/PKGBUILD b/mingw-w64-passagemath-environment/PKGBUILD new file mode 100644 index 0000000000..053c42fb4e --- /dev/null +++ b/mingw-w64-passagemath-environment/PKGBUILD @@ -0,0 +1,39 @@ +# Contributor: Dirk Stolle + +_realname=passagemath-environment +pkgbase=mingw-w64-python-${_realname} +pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") +pkgver=10.6.36 +pkgrel=1 +provides=("${MINGW_PACKAGE_PREFIX}-${_realname}") +pkgdesc="Subset of the Sage library providing the connection to the system and software environment (mingw-w64)" +arch=('any') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url='https://github.com/passagemath/passagemath' +msys2_references=( + 'purl: pkg:pypi/passagemath-environment' +) +license=('spdx:GPL-2.0-or-later') +depends=("${MINGW_PACKAGE_PREFIX}-python" + "${MINGW_PACKAGE_PREFIX}-python-packaging" + "${MINGW_PACKAGE_PREFIX}-python-platformdirs") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools") +options=('!strip') +source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname/-/_}-${pkgver}.tar.gz") +sha256sums=('564ad8fa2a6678d9734d45325e5ecccd07dedc0ce78d2eddf229110b19936ca7') + +build() { + cp -r "${_realname/-/_}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + + python -m build --wheel --skip-dependency-check --no-isolation +} + +package() { + cd "python-build-${MSYSTEM}" + + MSYS2_ARG_CONV_EXCL="--prefix=" \ + python -m installer --prefix=${MINGW_PREFIX} \ + --destdir="${pkgdir}" dist/*.whl +}