From dbb0477280f2e6b72389b8ed47c187dd99332e54 Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Mon, 8 Aug 2022 23:51:03 +0200 Subject: [PATCH] New package: tpm2-totp-0.3.0 --- common/shlibs | 1 + srcpkgs/libtpm2-totp | 1 + srcpkgs/tpm2-totp-devel | 1 + srcpkgs/tpm2-totp/template | 53 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+) create mode 120000 srcpkgs/libtpm2-totp create mode 120000 srcpkgs/tpm2-totp-devel create mode 100644 srcpkgs/tpm2-totp/template diff --git a/common/shlibs b/common/shlibs index ae39d4551d5..ec58b8c4061 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4161,3 +4161,4 @@ libsyncthingconnector.so.1.2.3 syncthingtray-1.2.3_1 libglibutil.so.1 libglibutil-1.0.64_1 libgbinder.so.1 libgbinder-1.1.20_1 libsunpinyin.so.3 libsunpinyin-3.0.0rc2_1 +libtpm2-totp.so.0 libtpm2-totp-0.3.0_1 diff --git a/srcpkgs/libtpm2-totp b/srcpkgs/libtpm2-totp new file mode 120000 index 00000000000..483b177bd8e --- /dev/null +++ b/srcpkgs/libtpm2-totp @@ -0,0 +1 @@ +tpm2-totp \ No newline at end of file diff --git a/srcpkgs/tpm2-totp-devel b/srcpkgs/tpm2-totp-devel new file mode 120000 index 00000000000..483b177bd8e --- /dev/null +++ b/srcpkgs/tpm2-totp-devel @@ -0,0 +1 @@ +tpm2-totp \ No newline at end of file diff --git a/srcpkgs/tpm2-totp/template b/srcpkgs/tpm2-totp/template new file mode 100644 index 00000000000..ebdf3f359c3 --- /dev/null +++ b/srcpkgs/tpm2-totp/template @@ -0,0 +1,53 @@ +# Template file for 'tpm2-totp' +pkgname=tpm2-totp +version=0.3.0 +revision=1 +build_style=gnu-configure +hostmakedepends="autoconf autoconf-archive automake doxygen libtool pkg-config $(vopt_if man pandoc)" +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="Marcin Puc " +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/archive/refs/tags/v${version}.tar.gz" +checksum=5ff29164979d21bc0a51afce17aee80929ccce3270d0f4abce996fd36a4469e1 + +build_options="man" +desc_option_man="Use pandoc for manpages" + +case "$XBPS_MACHINE" in + x86_64*|i686|ppc64le*|ppc64) build_options_default="man" ;; +esac + +if [ -n "$XBPS_CHECK_PKGS" ]; then + configure_args="--enable-integration" +fi + +pre_configure() { + autoreconf -isv +} + +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" + + if [ -n "$build_option_man" ]; then + vmove usr/share/man/man3 + fi + } +}