Skip to content

Commit

Permalink
rustup: update to 1.14.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rasmus Thomsen committed Oct 7, 2018
1 parent bf61947 commit b950dfb
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions srcpkgs/rustup/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'rustup'
pkgname=rustup
version=1.13.0
revision=2
version=1.14.0
revision=1
wrksrc="${pkgname}.rs-${version}"
build_style=cargo
configure_args="--features no-self-update --bin rustup-init"
Expand All @@ -12,27 +12,25 @@ 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=9671934a6352366d8055769f1f5b297d9a15b4448634ee9fdf7c31c246fa5a4e

pre_build() {
cargo update --package openssl-sys --precise 0.9.2
}
checksum=a19310b180aaa373cf01007ab19836ba6bb1360aebad01471c81698140afbe55

do_install() {
vbin target/${RUST_TARGET}/release/rustup-init rustup
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
if ! [ "$CROSS_BUILD" ]; then
# generate shell completions
ln -s target/${RUST_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/
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/
fi

vdoc README.md
vlicense LICENSE-APACHE
Expand Down

0 comments on commit b950dfb

Please sign in to comment.