From 967a404a1d32f7dd8faca8b2eabfec35a727ae83 Mon Sep 17 00:00:00 2001 From: milisman Date: Tue, 13 Sep 2016 22:26:51 +0300 Subject: [PATCH] rust.paketlendi --- talimatname/genel/rust/talimat | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 talimatname/genel/rust/talimat diff --git a/talimatname/genel/rust/talimat b/talimatname/genel/rust/talimat new file mode 100644 index 000000000..ab2bde7d5 --- /dev/null +++ b/talimatname/genel/rust/talimat @@ -0,0 +1,25 @@ +# Description: A safe, concurrent, practical language by Mozilla. +# URL: http://www.rust-lang.org/ +# Packager: milisarge +# Depends on: libffi python jemalloc cmake + +name=rust +version=1.11.0 +release=1 +source=(http://static.rust-lang.org/dist/rustc-$version-src.tar.gz) + +build() { + cd rustc-$version + + ./configure --prefix=/usr \ + --release-channel=stable \ + --disable-docs \ + --enable-ccache + make CFLAGS=" -fPIC -w" + make DESTDIR=$PKG install + + cd "$PKG/usr/lib" + rm rustlib/{components,manifest-rustc,rust-installer-version} + ln -sf rustlib/x86_64-unknown-linux-gnu/lib/*.so . + +}