Skip to content

Commit

Permalink
contrib/tpm2-tools: new package (5.7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Natthias committed Sep 9, 2024
1 parent c160250 commit f299ed5
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
15 changes: 15 additions & 0 deletions contrib/tpm2-tools/patches/pandoc.patch
Original file line number Diff line number Diff line change
@@ -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
29 changes: 29 additions & 0 deletions contrib/tpm2-tools/template.py
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
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")

0 comments on commit f299ed5

Please sign in to comment.