milis/talimatname/genel/r/rust/talimat

25 lines
719 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Description: Mozilla tarafından güvenli, eşzamanlı, pratik bir dil.
# URL: http://www.rust-lang.org/
# Packager: milisarge
# Depends on: libffi python jemalloc cmake ccache
name=rust
version=1.20.0
release=1
source=(http://static.rust-lang.org/dist/rustc-$version-src.tar.gz
0001-librustc_llvm-build-Force-link-against-libffi.patch
bootstrap-config.toml)
build() {
cd ${name}c-$version-src
patch -p1 -i $SRC/0001-librustc_llvm-build-Force-link-against-libffi.patch
cp $SRC/bootstrap-config.toml config.toml
/usr/bin/python ./x.py build --verbose
DESTDIR=$PKG /usr/bin/python ./x.py install
rm -r $PKG/usr/lib/rustlib/{components,manifest-rustc,rust-installer-version}
rm -r $PKG/usr/share/doc
}