diff --git a/mingw-w64-python-zstandard/PKGBUILD b/mingw-w64-python-zstandard/PKGBUILD index 8a6e62143c..eb0c82cbbd 100644 --- a/mingw-w64-python-zstandard/PKGBUILD +++ b/mingw-w64-python-zstandard/PKGBUILD @@ -3,11 +3,11 @@ _realname=zstandard pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") -pkgver=0.16.0 +pkgver=0.17.0 pkgrel=1 pkgdesc='Python bindings to the Zstandard (zstd) compression library (mingw-w64)' arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url="https://github.com/indygreg/python-zstandard" license=('BSD') depends=("${MINGW_PACKAGE_PREFIX}-python") @@ -17,29 +17,28 @@ checkdepends=("${MINGW_PACKAGE_PREFIX}-python-hypothesis") optdepends=("${MINGW_PACKAGE_PREFIX}-python-cffi") options=('!emptydirs') source=("https://github.com/indygreg/python-zstandard/archive/$pkgver.tar.gz") -sha256sums=('d8c7d651a6592f41dd68591bed978761ba2a54c8990f1fea4c6a5bb58cc34350') +sha256sums=('bcdba2e5fd7842691f8ec2b9db58f362e0f133f745311dc3fbc021ce7fbdf221') -prepare() { - cd "$srcdir" - rm -rf python-build-${CARCH} | true - cp -r "python-${_realname}-$pkgver" "python-build-${CARCH}" +prepare() { + rm -rf python-build-${MSYSTEM} | true + cp -r "python-${_realname}-$pkgver" "python-build-${MSYSTEM}" } build() { - msg "Python build for ${CARCH}" - cd "${srcdir}/python-build-${CARCH}" + msg "Python build for ${MSYSTEM}" + cd "${srcdir}/python-build-${MSYSTEM}" sed -i 's,if compiler.compiler_type == "unix",if compiler.compiler_type == "mingw32",g' make_cffi.py ${MINGW_PREFIX}/bin/python setup.py build } check() { - cd "${srcdir}/python-build-${CARCH}" + cd "${srcdir}/python-build-${MSYSTEM}" ${MINGW_PREFIX}/bin/python setup.py build --inplace | warning "Tests failed" ${MINGW_PREFIX}/bin/python setup.py test | warning "Tests failed" } package() { - cd "${srcdir}/python-build-${CARCH}" + cd "${srcdir}/python-build-${MSYSTEM}" 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