pantry/projects/catb.org/wumpus/package.yml

32 lines
724 B
YAML
Raw Normal View History

2022-12-01 20:41:37 +03:00
distributable:
url: https://gitlab.com/esr/wumpus/-/archive/{{ version.raw }}/wumpus-{{ version.raw }}.tar.gz
2022-12-01 20:41:37 +03:00
strip-components: 1
versions:
- 1.9
2022-12-01 20:41:37 +03:00
provides:
- bin/wumpus
- bin/superhack
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
#pagure.io/xmlto: '*'
2022-12-01 20:41:37 +03:00
script: |
make wumpus superhack
# When xmlto is packaged then switch the to `make ... install`
mkdir -p "{{prefix}}"/bin
mv wumpus superhack "{{prefix}}"/bin
# make prefix={{prefix}} install
2022-12-01 20:41:37 +03:00
test:
script: |
wumpus > wumpus.out &
superhack > superhack.out &
sleep 1
test "x$(head -n1 wumpus.out)" = "xINSTRUCTIONS (Y-N)" && \
test "x$(head -n1 superhack.out)" = "xHunt the Superhack"