mirror of
https://github.com/ivabus/pantry
synced 2024-09-20 00:30:48 +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,14 +1,9 @@
|
|||
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
|
||||
|
||||
# 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:
|
||||
- 1.7
|
||||
|
||||
# TODO: Is there a gitlab version provider?
|
||||
- 1.9
|
||||
|
||||
provides:
|
||||
- bin/wumpus
|
||||
|
@ -18,10 +13,19 @@ build:
|
|||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
#pagure.io/xmlto: '*'
|
||||
|
||||
script: |
|
||||
make
|
||||
make prefix={{prefix}} install
|
||||
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
|
||||
|
||||
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