milis/talimatname/genel/r/rust/talimat

26 lines
724 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Mozilla tarafından güvenli, eşzamanlı, pratik bir dil.
2016-09-13 21:26:51 +02:00
# URL: http://www.rust-lang.org/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: libffi python jemalloc cmake ccache
2018-01-18 18:54:10 +01:00
# Grup: geliştirme
2016-09-13 21:26:51 +02:00
2017-10-28 14:10:23 +02:00
isim=rust
2018-01-24 00:58:41 +01:00
surum=1.23.0
2017-10-28 14:10:23 +02:00
devir=1
kaynak=(http://static.rust-lang.org/dist/rustc-$surum-src.tar.gz
2017-09-05 09:40:15 +02:00
0001-librustc_llvm-build-Force-link-against-libffi.patch
bootstrap-config.toml)
2016-09-13 21:26:51 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd ${isim}c-$surum-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
}