python-cx-freeze: update to 8.2.0 (and add dependencies) (#24078)
* python-cx-freeze: update to 8.2.0 (and add dependencies) * include dependencies to depends list
This commit is contained in:
parent
66e10a0df2
commit
9cb68cafdd
54
mingw-w64-python-cabarchive/PKGBUILD
Normal file
54
mingw-w64-python-cabarchive/PKGBUILD
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
# Maintainer: Marcelo Duarte https://github.com/marcelotduarte
|
||||||
|
|
||||||
|
_realname=cabarchive
|
||||||
|
pkgbase=mingw-w64-python-${_realname}
|
||||||
|
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||||
|
pkgver=0.2.4
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="A pure-python library for creating and extracting cab files (mingw-w64)"
|
||||||
|
arch=('any')
|
||||||
|
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||||
|
url="https://github.com/hughsie/python-cabarchive"
|
||||||
|
msys2_references=(
|
||||||
|
'purl: pkg:pypi/cabarchive'
|
||||||
|
)
|
||||||
|
license=('spdx:LGPL')
|
||||||
|
depends=(
|
||||||
|
"${MINGW_PACKAGE_PREFIX}-python"
|
||||||
|
)
|
||||||
|
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=(
|
||||||
|
'04f60089473114cf26eab2b7e1d09611c5bfaf8edd3202dacef66bb5c71e48cf'
|
||||||
|
)
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$srcdir"
|
||||||
|
rm -rf python-build-${MSYSTEM} | true
|
||||||
|
|
||||||
|
cp -r "${_realname//_/-}-$pkgver" "python-build-${MSYSTEM}"
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "python-build-${MSYSTEM}"
|
||||||
|
|
||||||
|
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
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"
|
||||||
|
}
|
||||||
|
|
||||||
@ -6,7 +6,7 @@
|
|||||||
_realname=cx-freeze
|
_realname=cx-freeze
|
||||||
pkgbase=mingw-w64-python-${_realname}
|
pkgbase=mingw-w64-python-${_realname}
|
||||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||||
pkgver=8.1.0
|
pkgver=8.2.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Creates standalone executables from Python scripts, with the same performance (mingw-w64)"
|
pkgdesc="Creates standalone executables from Python scripts, with the same performance (mingw-w64)"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
@ -23,10 +23,10 @@ depends=(
|
|||||||
"${MINGW_PACKAGE_PREFIX}-python-pip"
|
"${MINGW_PACKAGE_PREFIX}-python-pip"
|
||||||
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
|
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
|
||||||
"${MINGW_PACKAGE_PREFIX}-python-cx-logging"
|
"${MINGW_PACKAGE_PREFIX}-python-cx-logging"
|
||||||
|
"${MINGW_PACKAGE_PREFIX}-python-lief"
|
||||||
|
"${MINGW_PACKAGE_PREFIX}-python-cabarchive"
|
||||||
|
"${MINGW_PACKAGE_PREFIX}-python-striprtf"
|
||||||
)
|
)
|
||||||
if [ "${CARCH}" != "aarch64" ]; then
|
|
||||||
depends+=("${MINGW_PACKAGE_PREFIX}-python-lief")
|
|
||||||
fi
|
|
||||||
makedepends=(
|
makedepends=(
|
||||||
"${MINGW_PACKAGE_PREFIX}-python-build"
|
"${MINGW_PACKAGE_PREFIX}-python-build"
|
||||||
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
||||||
@ -36,26 +36,23 @@ makedepends=(
|
|||||||
checkdepends=(
|
checkdepends=(
|
||||||
"${MINGW_PACKAGE_PREFIX}-python-pytest"
|
"${MINGW_PACKAGE_PREFIX}-python-pytest"
|
||||||
"${MINGW_PACKAGE_PREFIX}-python-pytest-cov"
|
"${MINGW_PACKAGE_PREFIX}-python-pytest-cov"
|
||||||
"${MINGW_PACKAGE_PREFIX}-python-pytest-datafiles"
|
|
||||||
"${MINGW_PACKAGE_PREFIX}-python-pytest-mock"
|
"${MINGW_PACKAGE_PREFIX}-python-pytest-mock"
|
||||||
"${MINGW_PACKAGE_PREFIX}-python-pytest-timeout"
|
"${MINGW_PACKAGE_PREFIX}-python-pytest-timeout"
|
||||||
"${MINGW_PACKAGE_PREFIX}-python-pytest-xdist"
|
"${MINGW_PACKAGE_PREFIX}-python-pytest-xdist"
|
||||||
)
|
)
|
||||||
options=(!strip)
|
options=(!strip)
|
||||||
source=(
|
source=(
|
||||||
#"https://pypi.org/packages/source/${_realname::1}/${_realname/-/_}/${_realname/-/_}-${pkgver}.tar.gz"
|
"https://pypi.org/packages/source/${_realname::1}/${_realname/-/_}/${_realname/-/_}-${pkgver}.tar.gz"
|
||||||
"${url}/archive/refs/tags/${pkgver}.tar.gz"
|
#"${url}/archive/refs/tags/${pkgver}.tar.gz"
|
||||||
)
|
)
|
||||||
sha256sums=(
|
sha256sums=(
|
||||||
'45d82f7e541ae4fb05ed4250c03a84f969ba94a43bac0112a86c0b7793a12c3b'
|
'bfaac976daf96cff94463e992006305afb520af1c9efabd6dfd6c746449f1c96'
|
||||||
)
|
)
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "${srcdir}"/cx_Freeze-${pkgver}
|
cd "${srcdir}"/cx_Freeze-${pkgver}
|
||||||
# ignore version check for setuptools
|
# ignore version check for setuptools
|
||||||
sed -i 's/"setuptools>=.*"/"setuptools"/' pyproject.toml
|
sed -i 's/"setuptools>=.*"/"setuptools"/' pyproject.toml
|
||||||
sed -i 's/"cabarchive>=.*"/#"cabarchive"/' pyproject.toml
|
|
||||||
sed -i 's/"striprtf>=.*"/#"striprtf"/' pyproject.toml
|
|
||||||
|
|
||||||
rm -Rf "${srcdir}"/python-${_realname}-${MSYSTEM}
|
rm -Rf "${srcdir}"/python-${_realname}-${MSYSTEM}
|
||||||
cp -a "${srcdir}"/cx_Freeze-${pkgver} "${srcdir}"/python-${_realname}-${MSYSTEM}
|
cp -a "${srcdir}"/cx_Freeze-${pkgver} "${srcdir}"/python-${_realname}-${MSYSTEM}
|
||||||
|
|||||||
54
mingw-w64-python-striprtf/PKGBUILD
Normal file
54
mingw-w64-python-striprtf/PKGBUILD
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
# Maintainer: Marcelo Duarte https://github.com/marcelotduarte
|
||||||
|
|
||||||
|
_realname=striprtf
|
||||||
|
pkgbase=mingw-w64-python-${_realname}
|
||||||
|
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||||
|
pkgver=0.0.29
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="A simple library to convert rtf to text (mingw-w64)"
|
||||||
|
arch=('any')
|
||||||
|
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||||
|
url="https://github.com/joshy/striprtf"
|
||||||
|
msys2_references=(
|
||||||
|
'purl: pkg:pypi/striprtf'
|
||||||
|
)
|
||||||
|
license=('spdx:BSD-3-Clause')
|
||||||
|
depends=(
|
||||||
|
"${MINGW_PACKAGE_PREFIX}-python"
|
||||||
|
)
|
||||||
|
makedepends=(
|
||||||
|
"${MINGW_PACKAGE_PREFIX}-python-build"
|
||||||
|
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
||||||
|
"${MINGW_PACKAGE_PREFIX}-python-hatchling"
|
||||||
|
)
|
||||||
|
options=(!strip)
|
||||||
|
source=(
|
||||||
|
"https://pypi.org/packages/source/${_realname::1}/${_realname/-/_}/${_realname/-/_}-${pkgver}.tar.gz"
|
||||||
|
)
|
||||||
|
sha256sums=(
|
||||||
|
'5a822d075e17417934ed3add6fc79b5fc8fb544fe4370b2f894cdd28f0ddd78e'
|
||||||
|
)
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$srcdir"
|
||||||
|
rm -rf python-build-${MSYSTEM} | true
|
||||||
|
|
||||||
|
cp -r "${_realname//_/-}-$pkgver" "python-build-${MSYSTEM}"
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "python-build-${MSYSTEM}"
|
||||||
|
|
||||||
|
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
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"
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user