mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
add yubikey-agent
(#4324)
* add `yubikey-agent` * fix pcsc; go mod download; test * pie on linux --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
520e999501
commit
61dc17776d
2 changed files with 55 additions and 3 deletions
47
projects/filippo.io/yubikey-agent/package.yml
Normal file
47
projects/filippo.io/yubikey-agent/package.yml
Normal file
|
@ -0,0 +1,47 @@
|
|||
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
|
|
@ -22,9 +22,14 @@ build:
|
|||
cmake.org: ^3
|
||||
github.com/westes/flex: '*'
|
||||
perl.org: ^5 # pod2man
|
||||
script: |
|
||||
./configure $ARGS
|
||||
make install
|
||||
script:
|
||||
- ./configure $ARGS
|
||||
- make install
|
||||
- run: |
|
||||
mv PCSC/* .
|
||||
rmdir PCSC
|
||||
ln -s . PCSC
|
||||
working-directory: ${{ prefix }}/include
|
||||
env:
|
||||
ARGS:
|
||||
- --disable-dependency-tracking
|
||||
|
|
Loading…
Reference in a new issue