Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mingw-w64-mbedtls/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
_realname=mbedtls
pkgbase="mingw-w64-${_realname}"
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=3.6.6
pkgver=4.0.0
pkgrel=1
pkgdesc="Portable cryptographic and SSL/TLS library, aka polarssl (mingw-w64)"
arch=('any')
Expand All @@ -23,7 +23,7 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
source=("https://github.com/Mbed-TLS/mbedtls/releases/download/mbedtls-${pkgver}/mbedtls-${pkgver}.tar.bz2"
'0001-mbedtls-pkgconfig-add-bcrypt.patch'
'enable-features.patch')
sha256sums=('8fb65fae8dcae5840f793c0a334860a411f884cc537ea290ce1c52bb64ca007a'
sha256sums=('2f3a47f7b3a541ddef450e4867eeecb7ce2ef7776093f3a11d6d43ead6bf2827'
'52e951aab864c2a4616214bb72f29d5b9558f58c8b8ccc0ef2acb8d6ada65d9c'
'8198722473c24d4d7005d24d1ac0cf76df23a9d783ce48a205ad5b4ed782b04c')

Expand Down
8 changes: 4 additions & 4 deletions mingw-w64-python-lief/001-fix-setup.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--- ../LIEF-0.16.5/./api/python/backend/setup.py 2025-04-19 05:12:25.000000000 -0300
+++ ./api/python/backend/setup.py 2025-04-30 13:38:39.587801139 -0300
@@ -46,7 +46,7 @@
--- ../LIEF-1.0.0/api/python/backend/setup.py 2026-07-12 10:17:37.000000000 -0300
+++ api/python/backend/setup.py 2026-08-06 00:53:56.987078005 -0300
@@ -63,7 +63,7 @@

def _fix_env():
config = get_config()
- if sys.platform.startswith("win"):
+ if sysconfig.get_platform().startswith("win"):
if config.build.ninja:
from setuptools import msvc
is64 = sys.maxsize > 2**32
arch = "x64" if is64 else "x86"
67 changes: 0 additions & 67 deletions mingw-w64-python-lief/002-fix-build-with-nanobind-2.12.patch

This file was deleted.

27 changes: 12 additions & 15 deletions mingw-w64-python-lief/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ _realname=lief
pkgbase=mingw-w64-python-${_realname}
pkgname=${MINGW_PACKAGE_PREFIX}-python-${_realname}
pkgdesc="LIEF - Library to Instrument Executable Formats (mingw-w64)"
pkgver=0.17.6
pkgrel=4
pkgver=1.0.0
pkgrel=1
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
url="https://github.com/lief-project/LIEF/"
Expand Down Expand Up @@ -45,22 +45,20 @@ makedepends=(
)
options=('!strip')
source=(
https://github.com/lief-project/LIEF/archive/${pkgver}/${_realname}-${pkgver}.tar.gz
https://github.com/lief-project/LIEF/archive/${pkgver}/LIEF-${pkgver}.tar.gz
001-fix-setup.patch
002-fix-build-with-nanobind-2.12.patch
)
sha256sums=('5fbbd19c85912d417eabbaef2b98e70144496356964685b82e0792d708b9be87'
'8cab3f9aa2d010232b8d782bc09be0136752bd5f41b5d8a4dae976ac4b47d9a2'
'89d776ce1a504d52bec2b70b5aca919c888005e0803867118b658d5fd9a90296')
sha256sums=(
'2cf412695ff739d82e129db441e5c2025f3bb4873a3d3a1d3dd4cf300b682abd'
'3b3d677cb37e9ed6bf0f0a92c23404908b5b9a26d7cbc2eecb2208e2e99c8c52'
)

prepare() {
cd "LIEF-${pkgver}"
patch -p0 -i "${srcdir}"/001-fix-setup.patch
# https://github.com/lief-project/LIEF/commit/d09a8d53
patch -p1 -i "${srcdir}"/002-fix-build-with-nanobind-2.12.patch
patch -p0 -i "${srcdir}/001-fix-setup.patch"

rm -rf "${srcdir}"/build-${MSYSTEM} || true
cp -r "${srcdir}"/LIEF-${pkgver} "${srcdir}"/build-${MSYSTEM}
rm -rf "${srcdir}/build-${MSYSTEM}" || true
cp -r "${srcdir}/LIEF-${pkgver}" "${srcdir}/build-${MSYSTEM}"
}

build() {
Expand Down Expand Up @@ -104,13 +102,12 @@ enabled = true
debug = false
EOF

${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
python -m build --wheel --skip-dependency-check --no-isolation
}

package() {
cd build-${MSYSTEM}
MSYS2_ARG_CONV_EXCL="--prefix=" \
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
--destdir="${pkgdir}" api/python/dist/*.whl
python -m installer --prefix=${MINGW_PREFIX} --destdir="${pkgdir}" api/python/dist/*.whl
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
}
Loading