pantry/projects/github.com/mtoyoda/sl/package.yml

34 lines
702 B
YAML
Raw Normal View History

distributable:
url: https://github.com/mtoyoda/sl/archive/{{version.raw}}.tar.gz
strip-components: 1
versions:
github: mtoyoda/sl/releases/tags
provides:
- bin/sl
dependencies:
invisible-island.net/ncurses: 6
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
gnu.org/patch: '*'
script: |
# Add -v to allow testing resultant binary
patch -p1 < props/version.patch
make
2023-03-21 17:36:29 +03:00
mkdir -p "{{prefix}}"/bin
mv sl "{{prefix}}"/bin
env:
TEA_VERSION: ${{ version }}
test:
# FIXME: best tested with Expect, if possible.
# dependencies:
# tcl-lang.org/expect: '*'
# script: expect -d ./script.exp
test "$(sl -v)" = "sl version {{version}}"