diff --git a/projects/crates.io/gitweb/package.yml b/projects/crates.io/gitweb/package.yml new file mode 100644 index 00000000..d462d72a --- /dev/null +++ b/projects/crates.io/gitweb/package.yml @@ -0,0 +1,26 @@ +distributable: + url: https://github.com/yoannfleurydev/gitweb/archive/refs/tags/v{{ version }}.tar.gz + strip-components: 1 + +provides: + - bin/gitweb + +versions: + github: yoannfleurydev/gitweb + strip: /v/ + +dependencies: + openssl.org: ^1.1 + 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 "$(gitweb --version)" = "gitweb {{version}}"