mirror of
https://github.com/ivabus/pantry
synced 2025-06-08 08:20:32 +03:00
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:
parent
b010995fb8
commit
cf71174804
1 changed files with 14 additions and 10 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue