forked from ports/contrib
23 lines
696 B
Plaintext
23 lines
696 B
Plaintext
# 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.76.0
|
|
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
|
|
prt-get isinst bash-completion || rm -rf $PKG/usr/etc/bash_completion.d
|
|
prt-get isinst zsh || rm -rf $PKG/usr/share/zsh
|
|
rm -f $PKG/usr/lib/rustlib/{install.log,uninstall.sh}
|
|
}
|