milis/talimatname/genel/cargo/talimat

23 lines
715 B
Plaintext

# Description: rust paket yöneticisi
# URL: https://github.com/rust-lang/cargo/
# Packager: milisarge
# Depends on: 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
}