+hurl.dev -- Run and test HTTP Requests (#3186)

* +hurl.dev -- Run and test HTTP Requests

* fix: add --locked for reproducible builds

* fix: libxml2

* fix: curl.se
This commit is contained in:
Kevin Chen 2023-09-01 14:00:17 -04:00 committed by GitHub
parent c3ed8330a3
commit 91ff799501
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,30 @@
distributable:
url: https://github.com/Orange-OpenSource/hurl/archive/refs/tags/{{ version }}.tar.gz
strip-components: 1
provides:
- bin/hurl
- bin/hurlfmt
versions:
github: Orange-OpenSource/hurl
strip: /v/
# Hurl depends on: libssl, libcurl and libxml2 native libraries
dependencies:
gnome.org/libxml2: '*'
curl.se: '*'
build:
dependencies:
rust-lang.org: '>=1.65'
rust-lang.org/cargo: '*'
freedesktop.org/pkg-config: '*'
script:
- cargo install --locked --path packages/hurl --root {{prefix}}
- cargo install --locked --path packages/hurlfmt --root {{prefix}}
test:
script:
- hurl --version | grep {{version}}
- hurlfmt --version | grep {{version}}