[arch-commits] Commit in tpm2-pkcs11/repos (2 files)

Jonas Witschel diabonas at archlinux.org
Mon Jan 6 22:52:38 UTC 2020


    Date: Monday, January 6, 2020 @ 22:52:37
  Author: diabonas
Revision: 549798

archrelease: copy trunk to community-x86_64

Added:
  tpm2-pkcs11/repos/community-x86_64/
  tpm2-pkcs11/repos/community-x86_64/PKGBUILD
    (from rev 549797, tpm2-pkcs11/trunk/PKGBUILD)

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

Copied: tpm2-pkcs11/repos/community-x86_64/PKGBUILD (from rev 549797, tpm2-pkcs11/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-01-06 22:52:37 UTC (rev 549798)
@@ -0,0 +1,35 @@
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+pkgname=tpm2-pkcs11
+pkgver=1.0.1
+pkgrel=1
+pkgdesc='PKCS#11 interface for Trusted Platform Module 2.0 hardware'
+arch=('x86_64')
+url='https://github.com/tpm2-software/tpm2-pkcs11'
+license=('BSD' 'custom:IPR')
+depends=('openssl' 'python-cryptography' 'python-pyasn1-modules' 'python-yaml' 'sqlite' 'tpm2-tools')
+checkdepends=('cmocka' 'ibm-sw-tpm2' 'iproute2' 'libp11' 'opensc' 'tpm2-abrmd' 'xxd')
+source=("$url/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc})
+sha512sums=('24242f44680d5d3b152d21fcda20e874669cee3a03524daccb41c5f72499858e3bd932bf470b356727089b80c3fc8ed9b4b3a34d8657d4ec8eaac7a063e2394f'
+            'SKIP')
+validpgpkeys=('5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1') # William Roberts (Bill Roberts) <william.c.roberts at intel.com>
+
+build() {
+	cd "$pkgname-$pkgver"
+	./configure --prefix=/usr $( ((CHECKFUNC)) && echo --enable-unit --enable-integration)
+	make
+	cd tools
+	python setup.py build
+}
+
+check() {
+	cd "$pkgname-$pkgver"
+	make check
+}
+
+package() {
+	cd "$pkgname-$pkgver"
+	make DESTDIR="$pkgdir" install
+	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+	cd tools
+	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}



More information about the arch-commits mailing list