diff --git a/mingw-w64-python-cx_Freeze/PKGBUILD b/mingw-w64-python-cx-freeze/PKGBUILD similarity index 57% rename from mingw-w64-python-cx_Freeze/PKGBUILD rename to mingw-w64-python-cx-freeze/PKGBUILD index b9f5be2736..f231b52d1a 100644 --- a/mingw-w64-python-cx_Freeze/PKGBUILD +++ b/mingw-w64-python-cx-freeze/PKGBUILD @@ -3,13 +3,15 @@ # Contributor: Duong Pham # Contributor: Lara Maia -_realname=cx_Freeze +_realname=cx-freeze pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") -provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") -conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") -replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") -pkgver=6.5.3 +provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}" + "${MINGW_PACKAGE_PREFIX}-python3-cx_Freeze") +conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}" + "${MINGW_PACKAGE_PREFIX}-python3-cx_Freeze") +replaces=("${MINGW_PACKAGE_PREFIX}-python3-cx_Freeze") +pkgver=6.6 pkgrel=1 pkgdesc="Creates standalone executables from Python scripts, with the same performance (mingw-w64)" arch=('any') @@ -17,26 +19,30 @@ mingw_arch=('mingw32' 'mingw64' 'ucrt64') license=('PSF') url="https://github.com/marcelotduarte/cx_Freeze/" depends=("${MINGW_PACKAGE_PREFIX}-python" + "${MINGW_PACKAGE_PREFIX}-python-cx-logging" "${MINGW_PACKAGE_PREFIX}-python-importlib-metadata") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") options=('staticlibs' 'strip' '!debug') -source=(${_realname}-${pkgver}.tar.gz::https://pypi.io/packages/source/c/cx_Freeze/cx_Freeze-${pkgver}.tar.gz) -sha256sums=('e0d03cabcdf9b9c21354807ed9f06fa9481a8fd5a0838968a830f01a70820ff1') +source=(cx_Freeze-${pkgver}.tar.gz::https://pypi.io/packages/source/c/cx_Freeze/cx_Freeze-${pkgver}.tar.gz) +sha256sums=('c4af8ad3f7e7d71e291c1dec5d0fb26bbe92df834b098ed35434c901fbd6762f') prepare() { - rm -Rf python-cx_Freeze-${CARCH} - cp -a cx_Freeze-${pkgver} python-cx_Freeze-${CARCH} + rm -Rf python-${_realname}-${CARCH} + cp -a cx_Freeze-${pkgver} python-${_realname}-${CARCH} + # patch cx_Logging 3.0 - temporary fix until 3.1 + curl https://raw.githubusercontent.com/anthony-tuininga/cx_Logging/master/src/cx_Logging.h -o cx_Logging.h + cp cx_Logging.h python-${_realname}-${CARCH}/source/bases } build() { echo "Building for Python" - cd python-cx_Freeze-${CARCH} + cd python-${_realname}-${CARCH} ${MINGW_PREFIX}/bin/python setup.py build } package() { local _mingw_prefix=$(cygpath -wm ${MINGW_PREFIX}) - cd python-cx_Freeze-${CARCH} + cd python-${_realname}-${CARCH} MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \ --root="${pkgdir}" --optimize=1 --skip-build