milis/talimatname/genel/c/cargo/talimat
2017-10-27 21:46:27 +03:00

22 lines
708 B
Text
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
name=cargo
version=0.21.1
release=1
source=(https://github.com/rust-lang/cargo/archive/$version.tar.gz
https://static.rust-lang.org/dist/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz)
build() {
cd $name-$version/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/cargo-0.21.1/src/etc/cargo.bashcomp.sh $PKG/usr/share/bash-completion/completions/cargo
}