From 97ed30fa2144b11c936aecbecf483b51b8fbe5b8 Mon Sep 17 00:00:00 2001 From: Markus Zoppelt Date: Mon, 20 Nov 2023 21:31:52 +0100 Subject: [PATCH] add `age-plugin-yubikey` (#4111) * +age-plugin-yubikey * pcsc-lite is available! * libpcsc is runtime --------- Co-authored-by: Jacob Heider --- .../str4d/age-plugin-yubikey/package.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 projects/github.com/str4d/age-plugin-yubikey/package.yml diff --git a/projects/github.com/str4d/age-plugin-yubikey/package.yml b/projects/github.com/str4d/age-plugin-yubikey/package.yml new file mode 100644 index 00000000..363af073 --- /dev/null +++ b/projects/github.com/str4d/age-plugin-yubikey/package.yml @@ -0,0 +1,26 @@ +distributable: + url: https://github.com/str4d/age-plugin-yubikey/archive/refs/tags/v{{ version }}.tar.gz + strip-components: 1 + +versions: + github: str4d/age-plugin-yubikey + +dependencies: + linux: + pcsclite.apdu.fr: ^2 + +build: + dependencies: + rust-lang.org: '>=1.65' + rust-lang.org/cargo: '*' + script: | + # don't use --locked to prevent + # error[E0635]: unknown feature `proc_macro_span_shrink` + cargo install --path . --root {{prefix}} + +provides: + - bin/age-plugin-yubikey + +test: + script: + test "$(age-plugin-yubikey --version)" = "age-plugin-yubikey {{version}}"