mirror of
https://github.com/ivabus/pantry
synced 2024-11-13 03:55:18 +03:00
0ffc0354f0
closes #2593 cargo requires cargo; the static ones get too old, and include their build date, making them hard to find. just use our last cargo.
46 lines
952 B
YAML
46 lines
952 B
YAML
distributable:
|
|
url: https://github.com/rust-lang/cargo/archive/refs/tags/{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: rust-lang/cargo/tags
|
|
|
|
provides:
|
|
- bin/cargo
|
|
|
|
runtime:
|
|
env:
|
|
CARGO_INSTALL_ROOT: ${{env.HOME}}/.local
|
|
|
|
dependencies:
|
|
git-scm.org: 2
|
|
rust-lang.org: '*'
|
|
openssl.org: ^1 # cargo needs the certs
|
|
#TODO curl.se: ^8
|
|
zlib.net: ^1
|
|
#TODO ^^ prevent vendoring by requiring these: libssh2.org & libgit2.org
|
|
|
|
build:
|
|
dependencies:
|
|
gnu.org/tar: '*'
|
|
tukaani.org/xz: '*'
|
|
freedesktop.org/pkg-config: ^0.29
|
|
rust-lang.org/cargo: '*'
|
|
script: cargo $ARGS
|
|
env:
|
|
ARGS:
|
|
- install
|
|
- --root={{ prefix }}
|
|
- --path=.
|
|
|
|
test:
|
|
script: |
|
|
cargo init . --name xyz_tea_fixture
|
|
echo 'fn main() {println!("Hello World!");}' >src/main.rs
|
|
cargo clippy
|
|
cargo run
|
|
cargo run --release
|
|
cargo install cowsay
|
|
test -x ~/.local/bin/cowsay
|
|
~/.local/bin/cowsay xyz.tea.hi
|