# Description: the Rust language, binary version # URL: https://rust-lang.org/ # Maintainer: John McQuah, jmcquah at disroot dot org # Depends on: llvm name=rust-bin version=1.91.1 release=1 source=(https://static.rust-lang.org/dist/rust-$version-x86_64-unknown-linux-gnu.tar.gz) build() { cd rust-$version-x86_64-unknown-linux-gnu ./install.sh --prefix=/usr --destdir="$PKG" --disable-ldconfig # clean up junk files mv "$PKG"/usr/libexec/* "$PKG"/usr/lib rmdir "$PKG"/usr/libexec rm -rf "$PKG"/usr/share/doc [ -f /etc/bash_completion ] || rm -rf "$PKG"/usr/etc/bash_completion.d [ -x /usr/bin/zsh ] || rm -rf "$PKG"/usr/share/zsh rm -f "$PKG"/usr/lib/rustlib/install.log \ "$PKG"/usr/lib/rustlib/uninstall.sh }