Update wumpus to 1.9 (#403)

* Update wumpus to 1.9

* Skip the man page, add a real test

---------

Co-authored-by: James Reynolds <magnsuviri@me.com>
This commit is contained in:
James Reynolds 2023-04-01 11:33:40 -06:00 committed by GitHub
parent b010995fb8
commit cf71174804
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,9 @@
distributable: distributable:
url: http://www.catb.org/~esr/wumpus/wumpus-1.7.tar.gz url: https://gitlab.com/esr/wumpus/-/archive/{{ version.raw }}/wumpus-{{ version.raw }}.tar.gz
strip-components: 1 strip-components: 1
# When https://gitlab.com/esr/wumpus/-/merge_requests/3 is merged, then switch to
# https://gitlab.com/esr/wumpus/-/archive/{{ version.raw }}/wumpus-{{ version.raw }}.tar.gz
versions: versions:
- 1.7 - 1.9
# TODO: Is there a gitlab version provider?
provides: provides:
- bin/wumpus - bin/wumpus
@ -18,10 +13,19 @@ build:
dependencies: dependencies:
tea.xyz/gx/cc: c99 tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*' tea.xyz/gx/make: '*'
#pagure.io/xmlto: '*'
script: | script: |
make make wumpus superhack
make prefix={{prefix}} install # When xmlto is packaged then switch the to `make ... install`
mkdir -p "{{prefix}}"/bin
mv wumpus superhack "{{prefix}}"/bin
# make prefix={{prefix}} install
test: test:
script: echo no way to test this 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"