+maaslalani.com/slides

This commit is contained in:
John Allen 2023-01-18 10:40:52 -05:00 committed by Jacob Heider
parent 0718677e3d
commit 9e4b1811cc

View file

@ -0,0 +1,33 @@
distributable:
url: https://github.com/maaslalani/slides/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
versions:
github: maaslalani/slides/
strip: /v/
provides:
- bin/slides
build:
script: |
go build -v -ldflags="$LDFLAGS"
mkdir -p "{{ prefix }}"/bin
mv slides "{{ prefix }}"/bin
dependencies:
go.dev: ^1.18
env:
LDFLAGS:
- -s
- -w
- -X main.version={{ version }}
- -X main.revision=tea
linux:
# or segmentation fault
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
LDFLAGS:
- -buildmode=pie
test:
script: |
slides --help