milis/talimatname/genel/c/cargo/talimat

23 lines
749 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: rust paket yöneticisi
# URL: https://github.com/rust-lang/cargo/
# Paketçi: milisarge
# Gerekler: rust cmake
# Grup: geliştirme
isim=cargo
surum=0.26.0
devir=1
kaynak=(https://github.com/rust-lang/cargo/archive/${surum}.tar.gz::${isim}-${surum}.tar.gz
https://static.rust-lang.org/dist/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz)
derle() {
cd $isim-$surum/src/
export SSL_CERT_FILE=/etc/ssl/ca-bundle.crt
$SRC/cargo-nightly-x86_64-unknown-linux-gnu/cargo/bin/cargo build --release
cd ..
install -d $PKG/usr/bin
install -d $PKG/usr/share/bash-completion/completions/
cp target/release/cargo $PKG/usr/bin/
cp $SRC/${isim}-${surum}/src/etc/cargo.bashcomp.sh $PKG/usr/share/bash-completion/completions/cargo
}