41 lines
1.0 KiB
Bash
41 lines
1.0 KiB
Bash
# Template file for 'tpm2-tss'
|
|
pkgname=tpm2-tss
|
|
version=3.0.3
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-weakcrypto --with-crypto=mbed --disable-fapi"
|
|
hostmakedepends="autoconf-archive automake libtool pkg-config doxygen libltdl-devel"
|
|
makedepends="libltdl-devel mbedtls-devel"
|
|
short_desc="OSS implementation of the TCG TPM2 Software Stack"
|
|
maintainer="Nathan Owens <ndowens@artixlinux.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://github.com/tpm2-software/tpm2-tss"
|
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
|
checksum=2242f2646fc13234dbeaf959d1fb1c23dc07b7786e7acfd98189cdeca1361efd
|
|
|
|
system_accounts="_tss"
|
|
|
|
pre_configure() {
|
|
./bootstrap
|
|
}
|
|
|
|
pre_build() {
|
|
vsed -e 's|tss|_tss|g' -i dist/tpm-udev.rules
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
tpm2-tss-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} libgcrypt-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.a"
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|