# Description: Library providing a software emulation of a Trusted Platform Module (TPM 1.2 and TPM 2.0)
# URL: https://github.com/stefanberger/libtpms
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on:

name=libtpms
version=0.10.0
release=1
source=(https://github.com/stefanberger/libtpms/archive/v$version/$name-$version.tar.gz)

build() {
  cd $name-$version

  autoreconf --install --force
  ./configure --prefix=/usr \
    --with-openssl \
    --with-tpm2

  make
  make DESTDIR=$PKG install
}
