void-packages/srcpkgs/tpm2-tools/template

31 lines
962 B
Bash

# Template file for 'tpm2-tools'
pkgname=tpm2-tools
version=5.4
revision=2
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 <tranzystorek.io@protonmail.com>"
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=33321bb22fa7af9c5da0f4c8446d17fcc073ae9f254f224fa218cb827b451720
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 docs/LICENSE
}