mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 16:32:57 +02:00
New package: rustup-1.9.0
This commit is contained in:
parent
d4ae39036b
commit
332c34ddcb
1 changed files with 29 additions and 0 deletions
29
srcpkgs/rustup/template
Normal file
29
srcpkgs/rustup/template
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# Template file for 'rustup'
|
||||||
|
pkgname=rustup
|
||||||
|
version=1.9.0
|
||||||
|
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"
|
||||||
|
checksum=24a6ed09553c8ec6d1c683eed0d34f40af779ae8439e7f7e821eec9ea4e5fdb6
|
||||||
|
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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue