pkgname=rust pkgver=1.83.0 pkgrel=1 arch=('x86_64') pkgdesc='Systems programming language that runs fast, prevents segfaults, and guarantees thread safety.' url='https://www.rust-lang.org/' license=('MIT' 'Apache') depends=('gcc-libs') makedepends=('cmake' 'curl' 'libffi' 'make' 'python3' 'rust' 'ninja') conflicts=('cargo') options=('!strip' '!emptydirs') # https://static.rust-lang.org/dist/index.html source=("https://static.rust-lang.org/dist/rustc-${pkgver}-src.tar.xz" 'config.toml') sha256sums=('7b11d4242dab0921a7d54758ad3fe805153c979c144625fecde11735760f97df' '3c981d2483541604f124b1ff24e7b6a398231c85be7e37359fbb15da6797d5f8') build() { cd rustc-${pkgver}-src cp ${srcdir}/config.toml config.toml ./x.py build } package() { cd rustc-${pkgver}-src DESTDIR=${pkgdir} ./x.py install install -Dm644 LICENSE-APACHE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE-APACHE install -Dm644 LICENSE-MIT ${pkgdir}/usr/share/licenses/$pkgname/LICENSE-MIT #mkdir -p ${pkgdir}/etc/bash-completion #mv ${pkgdir}/usr/src/etc/bash_completion.d ${pkgdir}/etc/bash-completion.d #mv ${pkgdir}/usr/libexec/cargo-credential-1password ${pkgdir}/usr/lib/cargo-credential-1password #rm -r ${pkgdir}/buildsys }