description="Library providing a software emulation of a Trusted Platform Module (TPM 1.2 and TPM 2.0)"
url="https://github.com/stefanberger/libtpms"

packager="Great-OS Team"
maintainer="Great-OS Team"

name="libtpms"
version="0.10.2"
release=1

source=(https://github.com/stefanberger/libtpms/archive/refs/tags/v$version.tar.gz)

build() { 

  cd "$name-$version"

  autoreconf -fiv

  ./configure --prefix=/usr --with-openssl --with-tpm2
  make
  make DESTDIR="$PKG" install

  install -Dm644 LICENSE -t "$PKG/usr/share/licenses/$name-$version"
}
