# Maintainer: Johannes Löthberg # Maintainer: Jan Alexander Steffens (heftig) # Contributor: Alexander F Rødseth # Contributor: Daniel Micay # Contributor: userwithuid # ALARM: Kevin Mihelich # - remove lib32, musl, and wasm packages and related bits # - add a link to g++ to compensate for broken cross-compiler decisions # - build v6/v7 with -j2 - RAM constraints # - set llvm-config in config.toml for ARM architectures # - set debuginfo-level = 0 in config.toml - RAM constraints # - build aarch64 with 16k page support highmem=1 pkgbase=rust pkgname=( rust rust-src ) epoch=1 pkgver=1.77.0 pkgrel=1 pkgdesc="Systems programming language focused on safety, speed and concurrency" url=https://www.rust-lang.org/ arch=(x86_64) license=("Apache-2.0 OR MIT") options=( !emptydirs !lto ) depends=( curl gcc gcc-libs libssh2 llvm-libs ) makedepends=( cmake libffi lld llvm musl ninja perl python rust ) checkdepends=( gdb procps-ng ) source=( "https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz"{,.asc} 0001-bootstrap-Change-libexec-dir.patch 0002-bootstrap-Change-bash-completion-dir.patch 0003-compiler-Change-LLVM-targets.patch 0004-compiler-Use-wasm-ld-for-wasm-targets.patch ) b2sums=('7cad0a664dbdc12ca3390bd05911072516b91f60eaab9b2c88e2fc005afd0cc698de641f44ad7fe524b89d97fdd4b49c1f6c6be0de1c7b7a6c82d1973a217a02' 'SKIP' 'd3ed7043e288c78ac4007b267448457db0972905037754b67249d81be0889f47c4d93573c24d730907c31ec44e80ce696fbf50f98521eadee92c003d2324a1a3' '6afaf5bff729618aa35d84f20b1447694c887b84a406f55344864b9e8dce72f80467412c128b5309d5b962b605ca396b77a52f275dd35681ab50cbedc68f873a' '18ca47c350373d9a095aff9a658c61816a542bb391a2a8ddf582f25795a21e9fc344b3e71a2eed7b094610bb61d9658e5360ef2ace9441fd21e4193746d45be7' '23f399d5ea776df5dba1ec42a96020a7ae3b18f5a83121d90ca0256a90027529135bac751373a31480860c0dbad30598833a7da43d1e7f25ce5b6d5d945ce550') validpgpkeys=( 108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE # Rust Language (Tag and Release Signing Key) ) prepare() { cd rustc-$pkgver-src # Patch bootstrap so that rust-analyzer-proc-macro-srv # is in /usr/lib instead of /usr/libexec patch -Np1 -i ../0001-bootstrap-Change-libexec-dir.patch # Put bash completions where they belong patch -Np1 -i ../0002-bootstrap-Change-bash-completion-dir.patch # Use our *-pc-linux-gnu targets, making LTO with clang simpler patch -Np1 -i ../0003-compiler-Change-LLVM-targets.patch # Use our wasm-ld patch -Np1 -i ../0004-compiler-Use-wasm-ld-for-wasm-targets.patch cat >config.toml <