Date: Thursday, May 4, 2023 @ 00:25:45 Author: orhun Revision: 1458670
archrelease: copy trunk to community-x86_64 Added: rustup/repos/community-x86_64/PKGBUILD (from rev 1458669, rustup/trunk/PKGBUILD) rustup/repos/community-x86_64/post.install (from rev 1458669, rustup/trunk/post.install) rustup/repos/community-x86_64/rustup-profile.sh (from rev 1458669, rustup/trunk/rustup-profile.sh) Deleted: rustup/repos/community-x86_64/PKGBUILD rustup/repos/community-x86_64/post.install -------------------+ PKGBUILD | 107 +++++++++++++++++++++++++++------------------------- post.install | 16 +++---- rustup-profile.sh | 5 ++ 3 files changed, 69 insertions(+), 59 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2023-05-04 00:25:25 UTC (rev 1458669) +++ PKGBUILD 2023-05-04 00:25:45 UTC (rev 1458670) @@ -1,51 +0,0 @@ -# Maintainer: Sven-Hendrik Haase <svenst...@archlinux.org> -# Contributor: Jonathon Fernyhough <jonathon_at_manjaro_dot_org> -# Contributor: Jon Gjengset <j...@tsp.io> -pkgname=rustup -pkgver=1.26.0 -pkgrel=1 -pkgdesc="The Rust toolchain installer" -arch=('x86_64') -url="https://github.com/rust-lang/rustup.rs" -license=('MIT' 'Apache') -depends=('curl' 'xz' 'zstd') -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' 'rust-analyzer') -conflicts=('rust' 'cargo' 'rustfmt' 'rust-analyzer') -replaces=('cargo-tree') -install='post.install' -options=("!lto") -source=("rustup-${pkgver}.tar.gz::https://github.com/rust-lang/rustup.rs/archive/${pkgver}.tar.gz") -sha512sums=('bc7cb580640248a601dbafb87c3a9e908b6c687377b4e0f88280576af15527f5837d9463f7831c14b0c274cd3170449e634cd851e0d03ea4ff1d0461d4a941be') -_binlinks=('cargo' 'rustc' 'rustdoc' 'rust-gdb' 'rust-lldb' 'rls' 'rustfmt' 'cargo-fmt' 'cargo-clippy' 'clippy-driver' 'cargo-miri' 'rust-analyzer') - -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:set ts=2 sw=2 et: Copied: rustup/repos/community-x86_64/PKGBUILD (from rev 1458669, rustup/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2023-05-04 00:25:45 UTC (rev 1458670) @@ -0,0 +1,56 @@ +# Maintainer: Sven-Hendrik Haase <svenst...@archlinux.org> +# Maintainer: Orhun Parmaksız <or...@archlinux.org> +# Contributor: Jonathon Fernyhough <jonathon_at_manjaro_dot_org> +# Contributor: Jon Gjengset <j...@tsp.io> +pkgname=rustup +pkgver=1.26.0 +pkgrel=2 +pkgdesc="The Rust toolchain installer" +arch=('x86_64') +url="https://github.com/rust-lang/rustup.rs" +license=('MIT' 'Apache') +depends=('curl' 'xz' 'zstd') +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' 'rust-analyzer') +conflicts=('rust' 'cargo' 'rustfmt') +replaces=('cargo-tree') +install='post.install' +options=("!lto") +source=("rustup-${pkgver}.tar.gz::https://github.com/rust-lang/rustup.rs/archive/${pkgver}.tar.gz" + "rustup-profile.sh") +sha512sums=('bc7cb580640248a601dbafb87c3a9e908b6c687377b4e0f88280576af15527f5837d9463f7831c14b0c274cd3170449e634cd851e0d03ea4ff1d0461d4a941be' + 'd5f96f00016877a538019313837a126490f085b28b3ad3084c7f00170b6a0ca906cb63cb57584b0bf5781e197b57fe1849cb80353e3dc60f0fb222ced6c05988') +_binlinks=('cargo' 'rustc' 'rustdoc' 'rust-gdb' 'rust-lldb' 'rls' 'rustfmt' 'cargo-fmt' 'cargo-clippy' 'clippy-driver' 'cargo-miri' 'rust-analyzer') + +build() { + cd "$pkgname-${pkgver}" + cargo build --release --features no-self-update --bin rustup-init +} + +package() { + cd "$pkgname-${pkgver}" + install -d "${pkgdir}/usr/lib/$pkgname/bin" + install -Dm755 "target/release/rustup-init" "${pkgdir}/usr/bin/rustup" + for link in "${_binlinks[@]}"; do + ln -s /usr/bin/rustup "${pkgdir}/usr/lib/$pkgname/bin/${link}" + done + install -Dm755 "$srcdir/$pkgname-profile.sh" "$pkgdir/etc/profile.d/$pkgname.sh" + + # 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:set ts=2 sw=2 et: Deleted: post.install =================================================================== --- post.install 2023-05-04 00:25:25 UTC (rev 1458669) +++ post.install 2023-05-04 00:25:45 UTC (rev 1458670) @@ -1,8 +0,0 @@ -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" -} Copied: rustup/repos/community-x86_64/post.install (from rev 1458669, rustup/trunk/post.install) =================================================================== --- post.install (rev 0) +++ post.install 2023-05-04 00:25:45 UTC (rev 1458670) @@ -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" +} Copied: rustup/repos/community-x86_64/rustup-profile.sh (from rev 1458669, rustup/trunk/rustup-profile.sh) =================================================================== --- rustup-profile.sh (rev 0) +++ rustup-profile.sh 2023-05-04 00:25:45 UTC (rev 1458670) @@ -0,0 +1,5 @@ +# Set path to rustup symlinks if they exist + +[ -d /usr/lib/rustup/bin ] && PATH=$PATH:/usr/lib/rustup/bin + +export PATH