2022-12-01 20:41:37 +03:00
|
|
|
distributable:
|
2023-04-01 20:33:40 +03:00
|
|
|
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:
|
2023-05-01 20:14:59 +03:00
|
|
|
gitlab: esr/wumpus/tags
|
2022-12-01 20:41:37 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/wumpus
|
|
|
|
- bin/superhack
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
tea.xyz/gx/make: '*'
|
2023-04-01 20:33:40 +03:00
|
|
|
#pagure.io/xmlto: '*'
|
2022-12-01 20:41:37 +03:00
|
|
|
|
|
|
|
script: |
|
2023-04-01 20:33:40 +03:00
|
|
|
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:
|
2023-04-01 20:33:40 +03:00
|
|
|
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"
|