23 lines
700 B
Plaintext
23 lines
700 B
Plaintext
# Tanım: rust paket yöneticisi
|
||
# URL: https://github.com/rust-lang/cargo/
|
||
# Paketçi: milisarge
|
||
# Gerekler: rust cmake
|
||
|
||
isim=cargo
|
||
surum=0.21.1
|
||
devir=1
|
||
|
||
kaynak=(https://github.com/rust-lang/cargo/archive/$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/cargo-0.21.1/src/etc/cargo.bashcomp.sh $PKG/usr/share/bash-completion/completions/cargo
|
||
}
|