Date: Saturday, April 8, 2023 @ 15:18:31
Author: dvzrv
Revision: 1442732
archrelease: copy trunk to community-staging-x86_64
Added:
python-tpm2-pytss/repos/community-staging-x86_64/
python-tpm2-pytss/repos/community-staging-x86_64/PKGBUILD
(from rev 1442731, python-tpm2-pytss/trunk/PKGBUILD)
python-tpm2-pytss/repos/community-staging-x86_64/keys/
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-tpm2-pytss/repos/community-staging-x86_64/PKGBUILD (from rev
1442731, python-tpm2-pytss/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-08 15:18:31 UTC (rev 1442732)
@@ -0,0 +1,39 @@
+# Maintainer: Jonas Witschel <[email protected]>
+pkgname=python-tpm2-pytss
+pkgver=2.1.0
+_commit=d4cccb9e1164281455a3c05f4aab2e663133726b # refs/tags/2.1.0
+pkgrel=1
+pkgdesc='Python bindings for tpm2-tss'
+arch=('x86_64')
+url='https://github.com/tpm2-software/tpm2-pytss'
+license=('BSD')
+depends=('glibc' 'python' 'python-asn1crypto' 'python-cffi'
'python-cryptography' 'python-packaging' 'python-yaml'
+ 'tpm2-tss' 'libtss2-esys.so' 'libtss2-fapi.so' 'libtss2-mu.so'
'libtss2-rc.so' 'libtss2-tctildr.so')
+makedepends=('git' 'python-build' 'python-installer' 'python-pkgconfig'
+ 'python-setuptools' 'python-setuptools-scm' 'python-wheel')
+checkdepends=('python-pytest' 'swtpm' 'tpm2-tools')
+source=("git+$url.git#tag=$_commit?signed")
+sha512sums=('SKIP')
+validpgpkeys=('5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1') # William Roberts
(Bill Roberts) <[email protected]>
+
+pkgver() {
+ cd "${pkgname#python-}"
+ git describe | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
+}
+
+build() {
+ cd "${pkgname#python-}"
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "${pkgname#python-}"
+ local _python_version=$(python -c 'import sys; print("".join(map(str,
sys.version_info[:2])))')
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-$_python_version" pytest
+}
+
+package() {
+ cd "${pkgname#python-}"
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}