summaryrefslogtreecommitdiff
path: root/testing/swtpm/APKBUILD
blob: 46d6ead7a9c778d0636287480dc3661e7a786351 (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
# Contributor: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
# Maintainer: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
pkgname=swtpm
pkgver=0.7.3
pkgrel=0
pkgdesc="Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface"
url="https://github.com/stefanberger/swtpm"
arch="aarch64 armhf x86 x86_64"
license="BSD-3-Clause"
depends="libtpms"
makedepends="autoconf automake bash expect gawk gnutls gnutls-dev gnutls-utils
	json-glib-dev libseccomp-dev libtasn1-dev libtool libtpms-dev openssl-dev
	python3 socat
	"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	NOCONFIGURE=1 ./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libdir=/usr/lib \
		--with-openssl \
		--with-tss-user=root \
		--with-tss-group=root
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
7f4cdf7ca2539f28e3a78e2a081b24983f3305905c7cafcac0957b14f5c06c8ee9485a0adaf3710561091f9ee85e00822fe1ff874389808218c1e17f938c45d9  swtpm-0.7.3.tar.gz
"