From d9355d34fa15667b29475fc71c9b4ae5bf9508a6 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Mon, 27 Oct 2025 18:06:37 +0100 Subject: [PATCH] python-cffi: Update to 2.0.0 --- python-cffi/PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 python-cffi/PKGBUILD diff --git a/python-cffi/PKGBUILD b/python-cffi/PKGBUILD new file mode 100644 index 00000000..fcf9468b --- /dev/null +++ b/python-cffi/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Christoph Reiter + +pkgname=python-cffi +pkgver=2.0.0 +pkgrel=1 +pkgdesc="Foreign Function Interface for Python calling C code" +arch=('i686' 'x86_64') +url="https://cffi.readthedocs.org/" +msys2_references=( + 'purl: pkg:pypi/cffi' +) +license=('spdx:MIT') +depends=('python-pycparser' 'libffi') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'gcc' 'libffi-devel') +source=("https://github.com/python-cffi/cffi/archive/v$pkgver/$pkgname-$pkgver.tar.gz") +sha256sums=('e32bea840b50779a43dcaff13dcf6fa8bc29aa1b071c2cb4e27c1bd79114a202') + +build() { + cd cffi-$pkgver + + python -m build -nw +} + +package() { + cd cffi-$pkgver + + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +}