void-packages/srcpkgs/tpm2-totp/template

40 lines
1.2 KiB
Bash

# Template file for 'tpm2-totp'
pkgname=tpm2-totp
version=0.3.0
revision=3
build_style=gnu-configure
hostmakedepends="autoconf autoconf-archive automake libtool pkg-config"
makedepends="dracut mkinitcpio qrencode-devel tpm2-tss-devel"
checkdepends="iproute2 oath-toolkit-devel swtpm tpm2-tools"
short_desc="Attest the trustworthiness of a device using TOTP"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/tpm2-software/tpm2-totp"
changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-totp/master/CHANGELOG.md"
distfiles="https://github.com/tpm2-software/tpm2-totp/releases/download/v${version}/tpm2-totp-${version}.tar.gz"
checksum=1a8c83dc0d0dc58bd85a3fbfc9da6e39414c0d33f1a19886cde20f063f0c527b
if [ -n "$XBPS_CHECK_PKGS" ]; then
configure_args="--enable-integration"
fi
libtpm2-totp_package() {
short_desc+=" - library files"
pkg_install() {
vmove "usr/lib/*.so.*"
vlicense LICENSE
}
}
tpm2-totp-devel_package() {
short_desc+=" - development files"
depends="libtpm2-totp>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share/man/man3
}
}