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