diff --git a/projects/rust-lang.github.io/mdBook/package.yml b/projects/rust-lang.github.io/mdBook/package.yml new file mode 100644 index 00000000..e7db6423 --- /dev/null +++ b/projects/rust-lang.github.io/mdBook/package.yml @@ -0,0 +1,21 @@ +distributable: + url: https://github.com/rust-lang/mdBook/archive/refs/tags/v{{ version }}.tar.gz + strip-components: 1 + +provides: + - bin/mdbook + +versions: + github: rust-lang/mdBook + strip: /v/ + +build: + dependencies: + rust-lang.org: '>=1.65' + rust-lang.org/cargo: '*' + script: + cargo install --locked --path . --root {{prefix}} + +test: + script: + - test "$(mdbook --version)" = "mdbook v{{version}}"