Merge pull request #8369 from marcelotduarte/new_cx_freeze
cx_Freeze 6.6
This commit is contained in:
@@ -3,13 +3,16 @@
|
||||
# Contributor: Duong Pham <dthpham@gmail.com>
|
||||
# Contributor: Lara Maia <dev@lara.click>
|
||||
|
||||
_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-cx_Freeze"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-cx_Freeze")
|
||||
conflicts=("${MINGW_PACKAGE_PREFIX}-python3-cx_Freeze"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-cx_Freeze")
|
||||
replaces=("${MINGW_PACKAGE_PREFIX}-python3-cx_Freeze"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-cx_Freeze")
|
||||
pkgver=6.6
|
||||
pkgrel=1
|
||||
pkgdesc="Creates standalone executables from Python scripts, with the same performance (mingw-w64)"
|
||||
arch=('any')
|
||||
@@ -17,26 +20,32 @@ 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
|
||||
https://raw.githubusercontent.com/anthony-tuininga/cx_Logging/425267a154119497/src/cx_Logging.h)
|
||||
sha256sums=('c4af8ad3f7e7d71e291c1dec5d0fb26bbe92df834b098ed35434c901fbd6762f'
|
||||
'601472dd2e8267d64c91ec6875f83a89b8df1920b06e70ec8bbb5def643ff77d')
|
||||
|
||||
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
|
||||
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
|
||||
Reference in New Issue
Block a user