void-packages/srcpkgs/tpm2-tss/template
Nathan Owens 3545b733bb tpm2-tss: update to 3.0.1
Closes: #26205 [via git-merge-pr]
2020-11-28 22:19:24 -05:00

40 lines
1 KiB
Bash

# Template file for 'tpm2-tss'
pkgname=tpm2-tss
version=3.0.1
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=136131edb7198b28430beb2c4c7f244c1590b2217c4a9a80bc33dc2a547a9237
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
}
}