rustup: use cargo buildstyle
This commit is contained in:
parent
71ae3d2730
commit
1d6430d23e
1 changed files with 7 additions and 8 deletions
|
@ -1,10 +1,11 @@
|
||||||
# Template file for 'rustup'
|
# Template file for 'rustup'
|
||||||
pkgname=rustup
|
pkgname=rustup
|
||||||
version=1.13.0
|
version=1.13.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="${pkgname}.rs-${version}"
|
wrksrc="${pkgname}.rs-${version}"
|
||||||
conflicts="cargo rust"
|
build_style=cargo
|
||||||
hostmakedepends="cargo perl pkg-config"
|
configure_args="--features no-self-update --bin rustup-init"
|
||||||
|
hostmakedepends="perl pkg-config"
|
||||||
makedepends="libressl-devel zlib-devel libcurl-devel"
|
makedepends="libressl-devel zlib-devel libcurl-devel"
|
||||||
short_desc="The Rust toolchain installer"
|
short_desc="The Rust toolchain installer"
|
||||||
maintainer="Daniel Lee Ramírez <dleeram@protonmail.com>"
|
maintainer="Daniel Lee Ramírez <dleeram@protonmail.com>"
|
||||||
|
@ -12,15 +13,13 @@ license="Apache-2.0, MIT"
|
||||||
homepage="https://www.rustup.rs"
|
homepage="https://www.rustup.rs"
|
||||||
distfiles="https://github.com/rust-lang-nursery/${pkgname}.rs/archive/${version}.tar.gz"
|
distfiles="https://github.com/rust-lang-nursery/${pkgname}.rs/archive/${version}.tar.gz"
|
||||||
checksum=9671934a6352366d8055769f1f5b297d9a15b4448634ee9fdf7c31c246fa5a4e
|
checksum=9671934a6352366d8055769f1f5b297d9a15b4448634ee9fdf7c31c246fa5a4e
|
||||||
nocross=yes
|
|
||||||
|
|
||||||
do_build() {
|
pre_build() {
|
||||||
cargo update --package openssl-sys --precise 0.9.28
|
cargo update --package openssl-sys --precise 0.9.2
|
||||||
cargo build --release --features no-self-update --bin rustup-init
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vbin target/release/rustup-init rustup
|
vbin target/${RUST_TARGET}/release/rustup-init rustup
|
||||||
for cmd in cargo rust-gdb rust-lldb rustc rustdoc; do
|
for cmd in cargo rust-gdb rust-lldb rustc rustdoc; do
|
||||||
ln -s rustup ${DESTDIR}/usr/bin/${cmd}
|
ln -s rustup ${DESTDIR}/usr/bin/${cmd}
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue