pantry/projects/kubernetes.io/kustomize/package.yml

37 lines
833 B
YAML
Raw Normal View History

2023-03-24 20:42:08 +03:00
distributable:
url: https://github.com/kubernetes-sigs/kustomize/archive/refs/tags/kustomize/v{{ version }}.tar.gz
strip-components: 1
versions:
github: kubernetes-sigs/kustomize
strip: /kustomize\/v/
provides:
- bin/kustomize
dependencies:
kubernetes.io/kubectl: '*'
build:
dependencies:
go.dev: ^1.18
2023-12-07 20:11:17 +03:00
linux:
gnu.org/gcc: '*' # aarch64 wants `ld.gold`
2023-03-24 20:42:08 +03:00
env:
2023-12-07 20:11:17 +03:00
GOBIN: '{{prefix}}/bin'
2023-03-24 20:42:08 +03:00
GO111MODULE: on
LDFLAGS:
- -s
- -w
- -X=sigs.k8s.io/kustomize/api/provenance.version=kustomize/v{{version}}
linux:
# https://github.com/docker-library/golang/issues/402#issuecomment-982204575
LDFLAGS:
- -buildmode=pie
2023-12-07 20:11:17 +03:00
script: go install -v -ldflags="$LDFLAGS" ./kustomize
2023-03-24 20:42:08 +03:00
test:
script: |
test "$(kustomize version) = {{ version }}"
kustomize build .