blob: e1b666d8c6c2527b60b77f17a8e716b394ede1c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer:
pkgname=tpm2-pkcs11
pkgver=1.8.0
pkgrel=1
pkgdesc="A PKCS#11 interface for TPM2 hardware"
url="https://github.com/tpm2-software/tpm2-pkcs11"
arch="all"
license="BSD-2-Clause"
depends="
bash
py3-asn1-modules
py3-cryptography
py3-tpm2-pytss
py3-yaml
python3
tpm2-tools
"
makedepends="
autoconf
autoconf-archive
automake
libtool
linux-headers
openssl-dev
py3-setuptools
python3-dev
sqlite-dev
tpm2-abrmd-dev
tpm2-tss-dev
yaml-dev
"
options="!check" # Requires IBM TPM simulator
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/tpm2-software/tpm2-pkcs11/archive/$pkgver.tar.gz"
prepare() {
sed -i "s|m4_esyscmd_s(\[git describe .*\])|[$pkgver]|" configure.ac
default_prepare
./bootstrap
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--target="$CTARGET" \
--prefix=/usr
make
cd tools && python3 setup.py build
}
package() {
make DESTDIR="$pkgdir" install
cd tools && python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
006943b3853dc80e44d2322ea0278d6a9f2139c3b3e2a2c5f33436d479d698c5b9d685fb1166d22562bcf3d52edb1075efe7592c27a8c3a0cd05356cab3c9874 tpm2-pkcs11-1.8.0.tar.gz
"
|