42 lines
1.0 KiB
Bash
42 lines
1.0 KiB
Bash
# Template file for 'tpm2-tss'
|
|
pkgname=tpm2-tss
|
|
version=2.3.1
|
|
revision=2
|
|
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=da818b8cb82630f561ed088ef3204b243a8f1de680623a09d775deb6014c4c99
|
|
|
|
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
|
|
}
|
|
}
|