2018-01-09 18:12:30 +00:00
|
|
|
# Template file for 'rustup'
|
|
|
|
pkgname=rustup
|
2018-01-29 20:51:02 +00:00
|
|
|
version=1.11.0
|
2018-01-09 18:12:30 +00:00
|
|
|
revision=1
|
|
|
|
wrksrc="${pkgname}.rs-${version}"
|
|
|
|
conflicts="cargo rust"
|
|
|
|
hostmakedepends="cargo perl pkg-config"
|
|
|
|
makedepends="libressl-devel zlib-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"
|
2018-01-29 20:51:02 +00:00
|
|
|
checksum=000b873f239e8c5219ede3fd5836d6346ebea64ea928e2d754cdfc0f2071a874
|
2018-01-09 18:12:30 +00:00
|
|
|
nocross=yes
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
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
|
|
|
|
vdoc README.md
|
|
|
|
vlicense LICENSE-APACHE
|
|
|
|
vlicense LICENSE-MIT
|
|
|
|
}
|