From 9478f483f3d2b13edd2da5c832724d2d93852046 Mon Sep 17 00:00:00 2001 From: milisarge Date: Sat, 24 Jun 2017 19:17:59 +0300 Subject: [PATCH] cargo.paketlendi --- talimatname/genel/cargo/talimat | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 talimatname/genel/cargo/talimat diff --git a/talimatname/genel/cargo/talimat b/talimatname/genel/cargo/talimat new file mode 100644 index 000000000..99a6691d6 --- /dev/null +++ b/talimatname/genel/cargo/talimat @@ -0,0 +1,30 @@ +# Description: rust paket yƶneticisi +# URL: https://github.com/rust-lang/cargo/ +# Packager: milisarge +# Depends on: rust cmake + +name=cargo +version=0.17.0 +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/rust-installer + wget http://anduin.linuxfromscratch.org/BLFS/rust/rust-installer-20161004.tar.xz + tar -xf rust-installer-20161004.tar.xz --strip-components=1 + cd ../../ + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --cargo=$SRC/cargo-nightly*/cargo/bin/cargo + export SSL_CERT_FILE=/etc/ssl/ca-bundle.crt + make + make DESTDIR=$PKG install + + rm -f $PKG/usr/lib/rustlib/{install.log,manifest-cargo,uninstall.sh,components,rust-installer-version} + + install -d $PKG/usr/share/bash-completion/completions + mv $PKG/usr/etc/bash_completion.d/cargo $PKG/usr/share/bash-completion/completions/cargo +}