rust.paketlendi

This commit is contained in:
milisman 2016-09-13 22:26:51 +03:00
parent 9553f31dff
commit 967a404a1d
1 changed files with 25 additions and 0 deletions

View File

@ -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 .
}