From a9ebbc65b53cd1704a169887d8f9fe68d09c216f Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Mon, 8 Aug 2022 23:50:39 +0200 Subject: [PATCH] New package: tpm2-tools-5.2 --- .../tpm2-tools/patches/version-cache.patch | 11 +++++++ srcpkgs/tpm2-tools/template | 30 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 srcpkgs/tpm2-tools/patches/version-cache.patch create mode 100644 srcpkgs/tpm2-tools/template diff --git a/srcpkgs/tpm2-tools/patches/version-cache.patch b/srcpkgs/tpm2-tools/patches/version-cache.patch new file mode 100644 index 00000000000..3766b3fe9a5 --- /dev/null +++ b/srcpkgs/tpm2-tools/patches/version-cache.patch @@ -0,0 +1,11 @@ +diff --git a/configure.ac b/configure.ac +index f1c1711..2ca51b0 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1,5 +1,5 @@ + AC_INIT([tpm2-tools], +- [m4_esyscmd_s([git describe --tags --always --dirty])]) ++ [m4_esyscmd_s([cat VERSION])]) + AC_CONFIG_MACRO_DIR([m4]) + + AX_IS_RELEASE([dash-version]) diff --git a/srcpkgs/tpm2-tools/template b/srcpkgs/tpm2-tools/template new file mode 100644 index 00000000000..30120d8fc32 --- /dev/null +++ b/srcpkgs/tpm2-tools/template @@ -0,0 +1,30 @@ +# Template file for 'tpm2-tools' +pkgname=tpm2-tools +version=5.2 +revision=1 +build_style=gnu-configure +hostmakedepends="autoconf autoconf-archive automake libtool pkg-config $(vopt_if man pandoc)" +makedepends="libcurl-devel openssl-devel tpm2-tss-devel" +short_desc="Trusted Platform Module (TPM2.0) tools" +maintainer="Marcin Puc " +license="BSD-3-Clause" +homepage="https://github.com/tpm2-software/tpm2-tools/" +changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-tools/master/docs/CHANGELOG.md" +distfiles="https://github.com/tpm2-software/tpm2-tools/archive/refs/tags/${version}.tar.gz" +checksum=6b81d8214cc8006a8a5011926df917b885f320e428470a61669f577c0778e4d8 + +build_options="man" +desc_option_man="Use pandoc for manpages" + +case "$XBPS_MACHINE" in + x86_64*|i686|ppc64le*|ppc64) build_options_default="man" ;; +esac + +pre_configure() { + echo "${version}" > VERSION + ./bootstrap +} + +post_install() { + vlicense doc/LICENSE +}