mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 09:55:06 +03:00
24 lines
518 B
YAML
24 lines
518 B
YAML
|
distributable:
|
||
|
url: https://github.com/cpuguy83/go-md2man/archive/refs/tags/v{{version}}.tar.gz
|
||
|
strip-components: 1
|
||
|
|
||
|
versions:
|
||
|
github: cpuguy83/go-md2man/releases/tags
|
||
|
strip: /^v/
|
||
|
|
||
|
provides:
|
||
|
- bin/go-md2man
|
||
|
|
||
|
build:
|
||
|
dependencies:
|
||
|
go.dev: ^1.19
|
||
|
script: |
|
||
|
go build -ldflags="-s -w" -o bin/go-md2man
|
||
|
mkdir -p "{{ prefix }}"/bin
|
||
|
mv bin/go-md2man "{{ prefix }}"/bin
|
||
|
|
||
|
test: |
|
||
|
echo '# manpage\nand a half\n' > input.md
|
||
|
go-md2man -in input.md -out output.man
|
||
|
grep ".TH manpage" output.man
|