# 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.68.0 pkgrel=1 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 ) b2sums=('cff56d29a5325cfcc5a50d492f73c15d92434bfdfd5cabfa84be61f815e546d4ac8786c00c1db668e6c8216e1c00d898ef448f6cfd7ea2ffdeaf1a51de68b124' 'SKIP' 'dce1c2340b172753b9d56dcc9d401e4cd9c66d64721c97e256974c18f17b0489e65e3732ef4e15538ea6e07c34f1269775a51c0c7c72e63a62f41ff258ce9ec2' '01dee52ef899c0545cde37b5e1ba3ecfd5def3785145ed9f440df12945885311b63ff974294c1efed65b25b01bdb5cea37d7830e8d9775daefec8c1bcd3e159b' '66c5cf262c4b865cdcc238d88aad4aa46e0861de0b4e20b5e86f7f1c312f7a40df0f9477fbc494949a99f51e9eb93537c072270e9bd20dfa79eb5cbe0d850e0f' '9f3f911088a22101f8966dc16a1ecc65da5facaad5c169d9464e721aa452dd45968d359a5b35ae74ff23bd98d44c60cb04c0b8bc89e10fb99549c1670371c902') 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 cat >config.toml <