milis/talimatname/genel/c/cargo/talimat

23 lines
700 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: rust paket yöneticisi
2017-06-24 18:17:59 +02:00
# URL: https://github.com/rust-lang/cargo/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: rust cmake
2017-06-24 18:17:59 +02:00
2017-10-28 14:10:23 +02:00
isim=cargo
surum=0.21.1
devir=1
2017-06-24 18:17:59 +02:00
2017-10-28 14:10:23 +02:00
kaynak=(https://github.com/rust-lang/cargo/archive/$surum.tar.gz
2017-06-24 18:17:59 +02:00
https://static.rust-lang.org/dist/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz)
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd $isim-$surum/src/
2017-06-24 18:17:59 +02:00
export SSL_CERT_FILE=/etc/ssl/ca-bundle.crt
2017-09-20 17:23:51 +02:00
$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
2017-06-24 18:17:59 +02:00
}