diff --git a/projects/crates.io/versio/package.yml b/projects/crates.io/versio/package.yml new file mode 100644 index 00000000..4661b8bc --- /dev/null +++ b/projects/crates.io/versio/package.yml @@ -0,0 +1,29 @@ +distributable: + url: https://github.com/chaaz/versio/archive/refs/tags/v{{ version }}.tar.gz + strip-components: 1 + +provides: + - bin/versio + +versions: + github: chaaz/versio + strip: /v/ + +dependencies: + openssl.org: ^1.1 + gnupg.org/libgpg-error: 1 + gnupg.org/gpgme: ^1.13 + gnupg.org/libassuan: '*' + zlib.net: ^1 + +build: + dependencies: + rust-lang.org: '>=1.65' + rust-lang.org/cargo: '*' + freedesktop.org/pkg-config: '*' + script: + cargo install --locked --path . --root {{prefix}} + +test: + script: + - test "$(versio --version)" = "versio {{version}}"