rustup: update to 1.13.0.

Also added completion scripts.
This commit is contained in:
Urs Schulz 2018-07-17 22:32:13 +02:00 committed by maxice8
parent 45dcee8569
commit 7da09a35d7

View file

@ -1,7 +1,7 @@
# Template file for 'rustup'
pkgname=rustup
version=1.11.0
revision=2
version=1.13.0
revision=1
wrksrc="${pkgname}.rs-${version}"
conflicts="cargo rust"
hostmakedepends="cargo perl pkg-config"
@ -11,7 +11,7 @@ maintainer="Daniel Lee Ramírez <dleeram@protonmail.com>"
license="Apache-2.0, MIT"
homepage="https://www.rustup.rs"
distfiles="https://github.com/rust-lang-nursery/${pkgname}.rs/archive/${version}.tar.gz"
checksum=000b873f239e8c5219ede3fd5836d6346ebea64ea928e2d754cdfc0f2071a874
checksum=9671934a6352366d8055769f1f5b297d9a15b4448634ee9fdf7c31c246fa5a4e
nocross=yes
do_build() {
@ -24,6 +24,17 @@ do_install() {
for cmd in cargo rust-gdb rust-lldb rustc rustdoc; do
ln -s rustup ${DESTDIR}/usr/bin/${cmd}
done
# generate shell completions
ln -s target/release/rustup-init rustup
./rustup completions zsh > rustup.zsh
./rustup completions bash > rustup.bash
./rustup completions fish > rustup.fish
vinstall rustup.zsh 0644 usr/share/zsh/site-functions/ _rustup
vinstall rustup.bash 0644 usr/share/bash-completion/completions/ rustup
vinstall rustup.fish 0644 usr/share/fish/completions/
vdoc README.md
vlicense LICENSE-APACHE
vlicense LICENSE-MIT