Skip to content

Commit 270a949

Browse files
committed
pycryptodome: fix arm64 build
1 parent 299c3e8 commit 270a949

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

mingw-w64-python-pycryptodome/PKGBUILD

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _realname=pycryptodome
44
pkgbase=mingw-w64-python-${_realname}
55
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
66
pkgver=3.18.0
7-
pkgrel=1
7+
pkgrel=2
88
pkgdesc="Collection of cryptographic algorithms and protocols, implemented for use from Python (mingw-w64)"
99
url="https://www.pycryptodome.org/"
1010
license=('spdx:BSD-2-Clause')
@@ -14,13 +14,16 @@ depends=("${MINGW_PACKAGE_PREFIX}-gmp"
1414
"${MINGW_PACKAGE_PREFIX}-python")
1515
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools"
1616
"${MINGW_PACKAGE_PREFIX}-cc")
17-
source=("${_realname}-${pkgver}.tar.gz::https://github.com/Legrandin/pycryptodome/archive/v${pkgver}.tar.gz")
18-
sha256sums=('60f58349c3d62a99bb87665b2a16afda87dc2d537a14aa45aaad1a3748b781ba')
17+
source=("${_realname}-${pkgver}.tar.gz::https://github.com/Legrandin/pycryptodome/archive/v${pkgver}.tar.gz"
18+
"check-for-__cpuidex-in-intrin-h.patch::https://github.com/Legrandin/pycryptodome/pull/757.patch")
19+
sha256sums=('60f58349c3d62a99bb87665b2a16afda87dc2d537a14aa45aaad1a3748b781ba'
20+
'59feec98aee2aefc0d5d187861328ad08515b2cb3a64180c33d295c3cf6db367')
1921

2022
prepare() {
2123
cd "${srcdir}/${_realname}-${pkgver}"
2224

2325
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
26+
patch -Nbp1 -i "${srcdir}/check-for-__cpuidex-in-intrin-h.patch"
2427
}
2528

2629
build() {

0 commit comments

Comments
 (0)