mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
parent
3973127f58
commit
d2a6c189ab
34
projects/github.com/containers/gvisor-tap-vsock/package.yml
Normal file
34
projects/github.com/containers/gvisor-tap-vsock/package.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
distributable:
|
||||
url: https://github.com/containers/gvisor-tap-vsock/archive/refs/tags/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: containers/gvisor-tap-vsock/releases/tags
|
||||
|
||||
platforms:
|
||||
- darwin
|
||||
- linux/x86-64
|
||||
|
||||
provides:
|
||||
- bin/gvproxy
|
||||
- bin/qemu-wrapper
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
go.dev: ^1.18
|
||||
script: |
|
||||
if test "{{hw.platform}}" = "linux"; then
|
||||
sed -i.bak 's/go build/go build -buildmode=pie/g' Makefile
|
||||
fi
|
||||
|
||||
make --jobs {{ hw.concurrency }}
|
||||
mkdir -p "{{ prefix }}"/bin
|
||||
mv bin/* "{{ prefix }}"/bin
|
||||
|
||||
test:
|
||||
script: |
|
||||
gvproxy -help 2>&1
|
||||
gvproxy -help 2>&1 | grep "Usage of gvproxy:"
|
||||
|
Loading…
Reference in a new issue