42 lines
1.0 KiB
Bash
42 lines
1.0 KiB
Bash
# Template file for 'tpm2-tss'
|
|
pkgname=tpm2-tss
|
|
version=2.3.2
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-weakcrypto --with-crypto=gcrypt"
|
|
hostmakedepends="autoconf-archive automake libtool pkg-config
|
|
doxygen libltdl-devel"
|
|
makedepends="libltdl-devel libgcrypt-devel"
|
|
short_desc="OSS implementation of the TCG TPM2 Software Stack"
|
|
maintainer="Nathan Owens <ndowens04@gmail.com>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://github.com/tpm2-software/tpm2-tss"
|
|
distfiles="https://github.com/tpm2-software/tpm2-tss/archive/${version}.tar.gz"
|
|
checksum=fa027be1b44a5dfb87d90d96ba257b458ff54a38ab176bcfa1f276db1226de0b
|
|
|
|
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
|
|
}
|
|
}
|