mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 04:05:06 +03:00
bd2da12fbb
* add(age, age-keygen) * buildmode=pie * i always mess up yaml with the web editor --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
33 lines
638 B
YAML
33 lines
638 B
YAML
distributable:
|
|
url: https://github.com/FiloSottile/age/archive/refs/tags/v{{ version }}.tar.gz
|
|
strip-components: 1
|
|
|
|
display-name: age
|
|
|
|
versions:
|
|
github: FiloSottile/age
|
|
|
|
provides:
|
|
- bin/age
|
|
- bin/age-keygen
|
|
|
|
build:
|
|
script: |
|
|
mkdir -p build/age
|
|
go build -o "build/age" -ldflags "$LDFLAGS" -trimpath ./cmd/...
|
|
mkdir -p "{{ prefix }}"/bin
|
|
mv build/age/age "{{ prefix }}"/bin
|
|
mv build/age/age-keygen "{{ prefix }}"/bin
|
|
env:
|
|
LDFLAGS:
|
|
- -X main.Version="{{version}}"
|
|
linux:
|
|
LDFLAGS:
|
|
- -buildmode=pie
|
|
|
|
dependencies:
|
|
go.dev: ^1.19
|
|
|
|
test:
|
|
age --version
|
|
age-keygen --version
|