[arch-commits] Commit in (4 files)

Jonas Witschel diabonas at gemini.archlinux.org
Mon Mar 21 16:48:08 UTC 2022


    Date: Monday, March 21, 2022 @ 16:48:08
  Author: diabonas
Revision: 1167209

newpkg: python-tpm2-pytss (dependency of tpm2-pkcs11 1.8.0)

Added:
  python-tpm2-pytss/
  python-tpm2-pytss/repos/
  python-tpm2-pytss/trunk/
  python-tpm2-pytss/trunk/PKGBUILD

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

Added: python-tpm2-pytss/trunk/PKGBUILD
===================================================================
--- python-tpm2-pytss/trunk/PKGBUILD	                        (rev 0)
+++ python-tpm2-pytss/trunk/PKGBUILD	2022-03-21 16:48:08 UTC (rev 1167209)
@@ -0,0 +1,39 @@
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+pkgname=python-tpm2-pytss
+pkgver=1.0.0
+_tag=cad39f77780f3fcb45d0cec79d5bf282c853a4e9 # git rev-parse "$pkgver"
+pkgrel=3
+pkgdesc='Python bindings for tpm2-tss'
+arch=('x86_64')
+url='https://github.com/tpm2-software/tpm2-pytss'
+license=('BSD')
+depends=('python' 'python-asn1crypto' 'python-cffi' 'python-cryptography' 'python-pkgconfig' 'tpm2-tss'
+         'libtss2-esys.so' 'libtss2-fapi.so' 'libtss2-mu.so' 'libtss2-rc.so' 'libtss2-tctildr.so')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-setuptools-scm' 'python-wheel')
+checkdepends=('python-pytest' 'swtpm')
+source=("git+$url.git?signed#tag=$_tag")
+sha512sums=('SKIP')
+validpgpkeys=('5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1') # William Roberts (Bill Roberts) <william.c.roberts at intel.com>
+
+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-}"
+	cp build/lib.*/tpm2_pytss/_libtpm2_pytss.abi3.so tpm2_pytss
+	cp build/lib.*/tpm2_pytss/internal/type_mapping.py tpm2_pytss/internal
+	python -B -m pytest
+}
+
+package() {
+	cd "${pkgname#python-}"
+	python -m installer --destdir="$pkgdir" dist/*.whl
+	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}



More information about the arch-commits mailing list