git clone https://github.com/stefanberger/libtpms/
sudo apt-get -y install automake autoconf libtool gcc build-essential libssl-dev dh-exec pkg-config dh-autoreconf
./autogen.sh --with-openssl
make dist
dpkg-buildpackage -us -uc -j4
# Install the library and development packages
cd ..
sudo dpkg -i libtpms_0.x.y-z..._amd64.deb libtpms-dev_0.x.y-z..._amd64.deb
swtpm
sudo apt install devscripts git equivs
git clone https://github.com/stefanberger/swtpm.git
cd swtpm
sed -i 's/SWTPM_TEST_SECCOMP_OPT.*$/SWTPM_TEST_SECCOMP_OPT=""/' ./debian/rules
sudo mk-build-deps --install ./debian/control
debuild -b
sudo apt autoremove swtpm-build-deps
sudo apt install ../swtpm*.deb