23 lines
749 B
Plaintext
23 lines
749 B
Plaintext
# 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
|
||
}
|