# 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.67.0 pkgrel=2 pkgdesc="Systems programming language focused on safety, speed and concurrency" url=https://www.rust-lang.org/ arch=(x86_64) license=(MIT Apache) options=( !debug !emptydirs !lto !strip ) 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-cargo-Change-libexec-dir.patch 0001-bootstrap-Change-libexec-dir.patch 0002-compiler-Change-LLVM-targets.patch 0003-compiler-Use-wasm-ld-for-wasm-targets.patch 0004-Revert-back-to-LlvmArchiveBuilder-on-all-platforms.patch ) sha256sums=('d029f14fce45a2ec7a9a605d2a0a40aae4739cb2fdae29ee9f7a6e9025a7fde4' 'SKIP' 'b2ef8c3bca5d72ed58ff8930e69947602f875a639c2b01de5943b1ecb1b5c3c3' '6a4e09671cd96a854cf0fc9a1f43651ac5a0fdc8dca571730131ae272b630cfe' 'e32fd355330e6c1ca4f0c630a3e254d261c48516128243a5d5d49f612cd217ed' 'f83bf98daee94d3e592fd2d96eecc25dc92b6b20575a3e3df7841a90a5b9f965' '307c1ea2a7394ee166bc48fe3ba3d9e940dbd38d33d56824300407518df011cf') validpgpkeys=(108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE # Rust Language (Tag and Release Signing Key) 474E22316ABF4785A88C6E8EA2C794A986419D8A) # Tom Stellard prepare() { cd rustc-$pkgver-src # Patch bootstrap and cargo so credential helpers # are in /usr/lib instead of /usr/libexec patch -d src/tools/cargo -Np1 < ../0001-cargo-Change-libexec-dir.patch patch -Np1 -i ../0001-bootstrap-Change-libexec-dir.patch # Use our *-pc-linux-gnu targets, making LTO with clang simpler patch -Np1 -i ../0002-compiler-Change-LLVM-targets.patch # Use our wasm-ld patch -Np1 -i ../0003-compiler-Use-wasm-ld-for-wasm-targets.patch # Fix mesa build # https://github.com/rust-lang/rust/issues/107334 # https://github.com/rust-lang/rust/pull/107360 patch -Np1 -i ../0004-Revert-back-to-LlvmArchiveBuilder-on-all-platforms.patch cat >config.toml <