39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# Template file for 'rustup'
|
|
pkgname=rustup
|
|
version=1.20.2
|
|
revision=4
|
|
build_style=cargo
|
|
configure_args="--features no-self-update --bin rustup-init"
|
|
hostmakedepends="perl pkg-config"
|
|
makedepends="libressl-devel zlib-devel libcurl-devel"
|
|
short_desc="Rust toolchain installer"
|
|
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=28207ee4c2d66840ca903df152b23b916326a5d3eeb643a1de0f24a16afa4209
|
|
|
|
pre_build() {
|
|
cargo update --package openssl-sys --precise 0.9.53
|
|
cargo update --package openssl --precise 0.10.26
|
|
}
|
|
|
|
do_install() {
|
|
vbin target/${RUST_TARGET}/release/rustup-init
|
|
|
|
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/
|
|
fi
|
|
|
|
vdoc README.md
|
|
vlicense LICENSE-APACHE
|
|
vlicense LICENSE-MIT
|
|
}
|