mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 08:55:07 +03:00
48 lines
891 B
YAML
48 lines
891 B
YAML
|
distributable:
|
||
|
url: https://github.com/FiloSottile/yubikey-agent/archive/refs/tags/v{{version}}.tar.gz
|
||
|
strip-components: 1
|
||
|
|
||
|
display-name: yubikey-agent
|
||
|
|
||
|
versions:
|
||
|
github: FiloSottile/yubikey-agent/tags
|
||
|
|
||
|
dependencies:
|
||
|
pcsclite.apdu.fr: ^2
|
||
|
linux:
|
||
|
gnupg.org/pinentry: '*'
|
||
|
|
||
|
build:
|
||
|
dependencies:
|
||
|
go.dev: '^1.20'
|
||
|
script:
|
||
|
- go mod download
|
||
|
- go build -ldflags "$LDFLAGS" -o "{{prefix}}"/bin/yubikey-agent
|
||
|
|
||
|
env:
|
||
|
LDFLAGS:
|
||
|
- -s
|
||
|
- -w
|
||
|
- -X=filippo.io/yubikey-agent/main.Version=v{{ version }}
|
||
|
linux:
|
||
|
LDFLAGS:
|
||
|
- -buildmode=pie
|
||
|
|
||
|
provides:
|
||
|
- bin/yubikey-agent
|
||
|
|
||
|
test:
|
||
|
dependencies:
|
||
|
linux:
|
||
|
gitlab.com/procps-ng/procps: '*'
|
||
|
script:
|
||
|
- yubikey-agent -l ./yubikey-agent.sock &
|
||
|
- sleep 1
|
||
|
- test -S ./yubikey-agent.sock
|
||
|
- $KILL yubikey-agent
|
||
|
env:
|
||
|
darwin:
|
||
|
KILL: killall
|
||
|
linux:
|
||
|
KILL: pkill
|