7da09a35d7
Also added completion scripts.
41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
# Template file for 'rustup'
|
|
pkgname=rustup
|
|
version=1.13.0
|
|
revision=1
|
|
wrksrc="${pkgname}.rs-${version}"
|
|
conflicts="cargo rust"
|
|
hostmakedepends="cargo perl pkg-config"
|
|
makedepends="libressl-devel zlib-devel libcurl-devel"
|
|
short_desc="The Rust toolchain installer"
|
|
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
|
|
nocross=yes
|
|
|
|
do_build() {
|
|
cargo update --package openssl-sys --precise 0.9.28
|
|
cargo build --release --features no-self-update --bin rustup-init
|
|
}
|
|
|
|
do_install() {
|
|
vbin 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
|
|
|
|
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/
|
|
|
|
vdoc README.md
|
|
vlicense LICENSE-APACHE
|
|
vlicense LICENSE-MIT
|
|
}
|