milis/talimatname/genel/cargo/talimat

23 lines
715 B
Plaintext
Raw Normal View History

2017-06-24 18:17:59 +02:00
# Description: rust paket yöneticisi
# URL: https://github.com/rust-lang/cargo/
# Packager: milisarge
# Depends on: rust cmake
name=cargo
2017-09-20 17:23:51 +02:00
version=0.21.1
2017-06-24 18:17:59 +02:00
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() {
2017-09-20 17:23:51 +02:00
cd $name-$version/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
}