rustup: update to 1.23.1.

This commit is contained in:
Jan Christian Grünhage 2020-12-23 12:58:19 +01:00 committed by Érico Nogueira Rolim
parent 798ff0144f
commit 1f6aa3091d

View file

@ -1,7 +1,9 @@
# Template file for 'rustup'
pkgname=rustup
version=1.22.1
revision=2
version=1.23.1
revision=1
# rustup doesn't recognize this target
archs="~armv6l-musl"
build_style=cargo
build_helper=qemu
configure_args="--features no-self-update --bin rustup-init"
@ -12,28 +14,24 @@ maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
license="Apache-2.0, MIT"
homepage="https://www.rustup.rs"
distfiles="https://github.com/rust-lang/${pkgname}/archive/${version}.tar.gz"
checksum=ad46cc624f318a9493aa62fc9612a450564fe20ba93c689e0ad856bff3c64c5b
checksum=0203231bfe405ee1c7d5e7e1c013b9b8a2dc87fbd8474e77f500331d8c26365f
post_build() {
# rustup errors out because it doesn't know about armv6l-musl
if [ "$XBPS_TARGET_MACHINE" != armv6l-musl ]; then
RUSTUP="target/${RUST_TARGET}/release/rustup-init"
ln -sf "$RUSTUP" rustup
# generate shell completions
vtargetrun ./rustup completions zsh >rustup.zsh
vtargetrun ./rustup completions bash >rustup.bash
vtargetrun ./rustup completions fish >rustup.fish
fi
RUSTUP="target/${RUST_TARGET}/release/rustup-init"
ln -sf "$RUSTUP" rustup
# generate shell completions
vtargetrun ./rustup completions zsh >rustup.zsh
vtargetrun ./rustup completions bash >rustup.bash
vtargetrun ./rustup completions fish >rustup.fish
}
do_install() {
vbin target/${RUST_TARGET}/release/rustup-init
if [ "$XBPS_TARGET_MACHINE" != armv6l-musl ]; then
vcompletion rustup.bash bash
vcompletion rustup.fish fish
vcompletion rustup.zsh zsh
fi
vcompletion rustup.bash bash
vcompletion rustup.fish fish
vcompletion rustup.zsh zsh
vdoc README.md
vlicense LICENSE-APACHE