# Template file for 'rustup' pkgname=rustup version=1.27.0 revision=1 # rustup doesn't recognize this target archs="~armv*-musl" build_style=cargo build_helper=qemu configure_args="--bin rustup-init --no-default-features --features curl-backend,reqwest-backend,reqwest-default-tls,no-self-update" hostmakedepends="pkg-config" makedepends="openssl-devel zlib-devel libcurl-devel" short_desc="Rust toolchain installer" maintainer="Marcin Puc " license="Apache-2.0, MIT" homepage="https://www.rustup.rs" changelog="https://raw.githubusercontent.com/rust-lang/rustup/master/CHANGELOG.md" distfiles="https://github.com/rust-lang/rustup/archive/refs/tags/${version}.tar.gz" checksum=3d331ab97d75b03a1cc2b36b2f26cd0a16d681b79677512603f2262991950ad1 case "$XBPS_TARGET_MACHINE" in x86_64*|i686*|arm*|aarch64*) configure_args+=" --features reqwest-rustls-tls" ;; esac post_build() { 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 vcompletion rustup.bash bash vcompletion rustup.fish fish vcompletion rustup.zsh zsh vdoc README.md vlicense LICENSE-APACHE vlicense LICENSE-MIT }