diff --git a/contrib/tpm2-tools/patches/pandoc.patch b/contrib/tpm2-tools/patches/pandoc.patch new file mode 100644 index 00000000000..a87a6c7fadc --- /dev/null +++ b/contrib/tpm2-tools/patches/pandoc.patch @@ -0,0 +1,15 @@ +diff --git a/Makefile.am b/Makefile.am +index 79dfd19..54b424c 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -659,10 +659,3 @@ else + endif + + check: prepare-check +- +-if !HAVE_PANDOC +-# If pandoc is not enabled, we want to complain that you need pandoc for make dist, +-# so hook the target and complain. +- @(>&2 echo "You do not have pandoc, a requirement for the distribution of manpages") +- @exit 1 +-endif diff --git a/contrib/tpm2-tools/template.py b/contrib/tpm2-tools/template.py new file mode 100644 index 00000000000..b765847c4fe --- /dev/null +++ b/contrib/tpm2-tools/template.py @@ -0,0 +1,29 @@ +pkgname = "tpm2-tools" +pkgver = "5.7" +pkgrel = 0 +build_style = "gnu_configure" +make_cmd = "gmake" +hostmakedepends = [ + "autoconf", + "automake", + "gmake", + "libtool", + "pkgconf", +] +makedepends = [ + "libcurl-devel", + "openssl-devel", + "tpm2-tss-devel", +] +pkgdesc = "Trusted Platform Module (TPM2.0) tools" +maintainer = "natthias " +license = "BSD-3-Clause" +url = "https://github.com/tpm2-software/tpm2-tools" +source = f"{url}/releases/download/{pkgver}/tpm2-tools-{pkgver}.tar.gz" +sha256 = "3810d36b5079256f4f2f7ce552e22213d43b1031c131538df8a2dbc3c570983a" +# symlinks tpm2 to tpm2_completion.bash +options = ["!lto", "!lintcomp"] + + +def post_install(self): + self.install_license("docs/LICENSE")