mirror of
https://github.com/outbackdingo/ports.git
synced 2026-03-21 06:44:30 +00:00
28 lines
730 B
Plaintext
28 lines
730 B
Plaintext
# description : Binary precompiled packages for Rust
|
|
# homepage : https://www.rust-lang.org
|
|
|
|
name=rust-bin
|
|
version=1.72.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
|
|
|
|
# move libexec to lib, remove libexec dir
|
|
mv $PKG/usr/libexec/* $PKG/usr/lib
|
|
rmdir $PKG/usr/libexec
|
|
|
|
# Remove doc
|
|
rm -rf $PKG/usr/share/doc
|
|
|
|
# Completions
|
|
scratch isinstalled bash-completion || rm -rf $PKG/usr/etc/bash_completion.d
|
|
scratch isinstalled zsh || rm -rf $PKG/usr/share/zsh
|
|
|
|
# Clean files
|
|
rm -f $PKG/usr/lib/rustlib/install.log
|
|
rm -f $PKG/usr/lib/rustlib/uninstall.sh
|
|
}
|