python-cffi: Update to 2.0.0
This commit is contained in:
29
python-cffi/PKGBUILD
Normal file
29
python-cffi/PKGBUILD
Normal file
@@ -0,0 +1,29 @@
|
||||
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
|
||||
|
||||
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/
|
||||
}
|
||||
Reference in New Issue
Block a user