add age-plugin-yubikey (#4111)

* +age-plugin-yubikey

* pcsc-lite is available!

* libpcsc is runtime

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
Markus Zoppelt 2023-11-20 21:31:52 +01:00 committed by GitHub
parent 0e17ba9480
commit 97ed30fa21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}}"