cd "${isim}c-$surum-src"

mkdir -p $PKG/usr
tar xf build/dist/rustc-${surum}-x86_64-unknown-linux-gnu.tar.gz -C "$PKG/usr" --strip-components=2 --exclude=manifest.in
tar xf build/dist/rust-std-${surum}-x86_64-unknown-linux-gnu.tar.gz -C "$PKG/usr/lib" --strip-components=3 --exclude=manifest.in


cd ${PKG}/usr/lib
ln -sf rustlib/*/lib/*.so . # kısayol ataması
cd -
# temizlik
rm -rfv $PKG/usr/share/zsh
rm -rfv $PKG/etc
rm -rfv $PKG/usr/lib/rustlib/{components,manifest-rustc,rust-installer-version,uninstall.sh}
