mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 02:15:06 +03:00
31 lines
680 B
YAML
31 lines
680 B
YAML
|
distributable:
|
||
|
url: https://github.com/reproducible-containers/diffoci/archive/refs/tags/{{version.tag}}.tar.gz
|
||
|
strip-components: 1
|
||
|
|
||
|
versions:
|
||
|
github: reproducible-containers/diffoci
|
||
|
|
||
|
provides:
|
||
|
- bin/diffoci
|
||
|
|
||
|
build:
|
||
|
dependencies:
|
||
|
go.dev: 1.21.0
|
||
|
script:
|
||
|
- make
|
||
|
- mkdir -p {{prefix}}/bin
|
||
|
- make install
|
||
|
env:
|
||
|
PREFIX: ${{prefix}}
|
||
|
VERSION: ${{version}}
|
||
|
linux:
|
||
|
# override
|
||
|
GO_LDFLAGS:
|
||
|
- -s
|
||
|
- -w
|
||
|
- -X github.com/reproducible-containers/diffoci/cmd/diffoci/version.Version={{version}}
|
||
|
- -buildmode=pie
|
||
|
|
||
|
# more requires docker or downloading OCI images
|
||
|
test: "diffoci info | grep 'Version: {{version}}'"
|