milis/talimatname/genel/c/cargo/talimat

23 lines
749 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
2017-12-24 00:47:53 +01:00
# Gerekler: rust cmake
# Grup: geliştirme
2017-06-24 18:17:59 +02:00
2017-10-28 14:10:23 +02:00
isim=cargo
2018-05-08 17:28:51 +02:00
surum=0.26.0
2017-10-28 14:10:23 +02:00
devir=1
2018-05-08 17:28:51 +02:00
kaynak=(https://github.com/rust-lang/cargo/archive/${surum}.tar.gz::${isim}-${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/
2018-05-08 17:28:51 +02:00
cp $SRC/${isim}-${surum}/src/etc/cargo.bashcomp.sh $PKG/usr/share/bash-completion/completions/cargo
2017-06-24 18:17:59 +02:00
}