contrib/rust-bin/Pkgfile

23 lines
696 B
Plaintext
Raw Normal View History

2023-07-13 23:08:27 +02:00
# 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
2024-02-08 21:55:20 +01:00
version=1.76.0
2023-07-13 23:08:27 +02:00
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
2023-08-05 14:24:41 +02:00
prt-get isinst bash-completion || rm -rf $PKG/usr/etc/bash_completion.d
2023-07-13 23:08:27 +02:00
prt-get isinst zsh || rm -rf $PKG/usr/share/zsh
rm -f $PKG/usr/lib/rustlib/{install.log,uninstall.sh}
}