Date: Wednesday, April 5, 2023 @ 18:21:00
  Author: felixonmars
Revision: 472663

archrelease: copy trunk to staging-x86_64

Added:
  python-cffi/repos/staging-x86_64/
  python-cffi/repos/staging-x86_64/PKGBUILD
    (from rev 472662, python-cffi/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: python-cffi/repos/staging-x86_64/PKGBUILD (from rev 472662, 
python-cffi/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD                             (rev 0)
+++ staging-x86_64/PKGBUILD     2023-04-05 18:21:00 UTC (rev 472663)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: lilydjwg <[email protected]>
+
+pkgname=python-cffi
+pkgver=1.15.1
+pkgrel=2
+pkgdesc="Foreign Function Interface for Python calling C code"
+arch=('x86_64')
+url="https://cffi.readthedocs.org/";
+license=('MIT')
+depends=('python-pycparser')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("https://foss.heptapod.net/pypy/cffi/-/archive/v$pkgver/cffi-v$pkgver.tar.bz2";)
+sha512sums=('4505c1e3206b66fbdf06ba39be6daac14a35f7148cef3156bb2015792cb59c004ea13fe7c7514feb35ecc5e7526a88fc0b3036ae84fd146a0a3b55bc676e8e51')
+
+build() {
+  cd "$srcdir"/cffi-v$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/cffi-v$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd cffi-v$pkgver
+
+  # remove files created during check() for reproducible SOURCES.txt
+  rm -rf testing/cffi{0,1}/__pycache__/
+
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to