description="The Rust programming language is designed to be a safe, \ concurrent, practical language." url="http://static.rust-lang.org/" packager="spiky " contributors="Pierre.,Rémy,Tnut" makedepends=(make-ca cmake curl llvm python libssh2) name=rustc version=1.74.1 source=(http://static.rust-lang.org/dist/$name-$version-src.tar.gz) build() { cd $name-$version-src cat < config.toml # see src/bootstrap/config.toml.example for more possible options [llvm] # by default, rust will build for a myriad of architectures targets = "X86" # When using system llvm prefer shared libraries link-shared = true [build] # omit HTML docs to save time and space (comment this to build them) docs = false # install cargo as well as rust extended = true # Do not query new versions of dependencies online. locked-deps = true # Specify which extended tools (those from the default install). tools = ["cargo", "clippy", "rustfmt"] # Use the source code shipped in the tarball for the dependencies. # The combination of this and the "locked-deps" entry avoids downloading # many crates from Internet, and makes the Rustc build more stable. vendor = true [install] prefix = "/usr" docdir = "share/doc/rustc-1.55.0" [rust] channel = "stable" rpath = false # BLFS does not install the FileCheck executable from llvm, # so disable codegen tests codegen-tests = false [target.x86_64-unknown-linux-gnu] # NB the output of llvm-config (i.e. help options) may be # dumped to the screen when config.toml is parsed. llvm-config = "/usr/bin/llvm-config" [target.i686-unknown-linux-gnu] # NB the output of llvm-config (i.e. help options) may be # dumped to the screen when config.toml is parsed. llvm-config = "/usr/bin/llvm-config" EOF export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi" python3 ./x.py build --exclude src/tools/miri export LIBSSH2_SYS_USE_PKG_CONFIG=1 DESTDIR=$PKG python3 ./x.py install rm -rfv $PKG/tmp }