[arch-commits] Commit in rustup/repos (3 files)
Jan Steffens
heftig at gemini.archlinux.org
Tue Nov 9 14:45:13 UTC 2021
Date: Tuesday, November 9, 2021 @ 14:45:13
Author: heftig
Revision: 1039332
archrelease: copy trunk to community-testing-x86_64
Added:
rustup/repos/community-testing-x86_64/
rustup/repos/community-testing-x86_64/PKGBUILD
(from rev 1039331, rustup/trunk/PKGBUILD)
rustup/repos/community-testing-x86_64/post.install
(from rev 1039331, rustup/trunk/post.install)
--------------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
post.install | 8 ++++++++
2 files changed, 58 insertions(+)
Copied: rustup/repos/community-testing-x86_64/PKGBUILD (from rev 1039331, rustup/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2021-11-09 14:45:13 UTC (rev 1039332)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Jonathon Fernyhough <jonathon_at_manjaro_dot_org>
+# Contributor: Jon Gjengset <jon at tsp.io>
+pkgname=rustup
+pkgver=1.24.3
+pkgrel=2
+pkgdesc="The Rust toolchain installer"
+arch=('x86_64')
+url="https://github.com/rust-lang/rustup.rs"
+license=('MIT' 'Apache')
+depends=('curl' 'xz')
+makedepends=('cargo')
+optdepends=('lldb: rust-lldb script'
+ 'gdb: rust-gdb script')
+provides=('rust' 'cargo' 'rust-nightly' 'cargo-nightly' 'rustfmt' 'rust-src'
+ 'lib32-rust-libs' 'rust-musl' 'rust-wasm')
+conflicts=('rust' 'cargo' 'rustfmt')
+replaces=('cargo-tree')
+install='post.install'
+source=("rustup-${pkgver}.tar.gz::https://github.com/rust-lang/rustup.rs/archive/${pkgver}.tar.gz")
+sha512sums=('43e85f1e653d451a2555a7ae9a3f47c4b9eb8e0fea0cd9cdcf381728ac933b56aaa25366ca2e1b12f20f9190b77d407a00a3f559ced6ad9c4f51fcef9efe67d7')
+_binlinks=('cargo' 'rustc' 'rustdoc' 'rust-gdb' 'rust-lldb' 'rls' 'rustfmt' 'cargo-fmt' 'cargo-clippy' 'clippy-driver' 'cargo-miri')
+
+build() {
+ cd "$pkgname-${pkgver}"
+ cargo build --release --features no-self-update --bin rustup-init
+}
+
+package() {
+ cd "$pkgname-${pkgver}"
+ install -Dm755 "target/release/rustup-init" "${pkgdir}/usr/bin/rustup"
+ for link in "${_binlinks[@]}"; do
+ ln -s /usr/bin/rustup "${pkgdir}/usr/bin/${link}"
+ done
+
+ # Generate completion files.
+ mkdir -p "$pkgdir/usr/share/bash-completion/completions"
+ "$pkgdir"/usr/bin/rustup completions bash > "$pkgdir/usr/share/bash-completion/completions/rustup"
+ "$pkgdir"/usr/bin/rustup completions bash cargo > "$pkgdir/usr/share/bash-completion/completions/cargo"
+ mkdir -p "$pkgdir/usr/share/fish/vendor_completions.d"
+ "$pkgdir"/usr/bin/rustup completions fish > "$pkgdir/usr/share/fish/vendor_completions.d/rustup.fish"
+ mkdir -p "$pkgdir/usr/share/zsh/site-functions"
+ "$pkgdir"/usr/bin/rustup completions zsh > "$pkgdir/usr/share/zsh/site-functions/_rustup"
+ "$pkgdir"/usr/bin/rustup completions zsh cargo > "$pkgdir/usr/share/zsh/site-functions/_cargo"
+
+ install -Dm644 LICENSE-MIT "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE-MIT
+ install -Dm644 LICENSE-APACHE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE-APACHE
+}
+
+# vim:filetype=sh:
Copied: rustup/repos/community-testing-x86_64/post.install (from rev 1039331, rustup/trunk/post.install)
===================================================================
--- community-testing-x86_64/post.install (rev 0)
+++ community-testing-x86_64/post.install 2021-11-09 14:45:13 UTC (rev 1039332)
@@ -0,0 +1,8 @@
+post_install() {
+ echo "You may need to run rustup update stable"
+ echo "and possibly also rustup self upgrade-data"
+}
+
+post_upgrade() {
+ echo "You may need to run rustup self upgrade-data"
+}
More information about the arch-commits
mailing list