milis/talimatname/genel/r/rust/talimat

25 lines
719 B
Plaintext
Raw Normal View History

2017-04-14 14:02:59 +02:00
# Description: Mozilla tarafından güvenli, eşzamanlı, pratik bir dil.
2016-09-13 21:26:51 +02:00
# URL: http://www.rust-lang.org/
# Packager: milisarge
2017-05-15 16:20:06 +02:00
# Depends on: libffi python jemalloc cmake ccache
2016-09-13 21:26:51 +02:00
name=rust
2017-09-05 07:49:37 +02:00
version=1.20.0
2016-09-13 21:26:51 +02:00
release=1
2017-09-05 09:40:15 +02:00
source=(http://static.rust-lang.org/dist/rustc-$version-src.tar.gz
0001-librustc_llvm-build-Force-link-against-libffi.patch
bootstrap-config.toml)
2016-09-13 21:26:51 +02:00
build() {
2017-09-05 09:40:15 +02:00
cd ${name}c-$version-src
2016-09-13 21:26:51 +02:00
2017-09-05 09:40:15 +02:00
patch -p1 -i $SRC/0001-librustc_llvm-build-Force-link-against-libffi.patch
cp $SRC/bootstrap-config.toml config.toml
2016-09-13 21:26:51 +02:00
2017-09-05 09:40:15 +02:00
/usr/bin/python ./x.py build --verbose
DESTDIR=$PKG /usr/bin/python ./x.py install
2016-09-13 21:26:51 +02:00
2017-09-05 09:40:15 +02:00
rm -r $PKG/usr/lib/rustlib/{components,manifest-rustc,rust-installer-version}
rm -r $PKG/usr/share/doc
2016-09-13 21:26:51 +02:00
}