Skip to content
Permalink
0af09a4ae7
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 50 lines (37 sloc) 1.09 KB
#!/usr/bin/env beesh
# BEE_VERSION rustc-1.24.1-0
SRCURL[0]="https://static.rust-lang.org/dist/rustc-${PKGVERSION}-src.tar.gz"
# PATCHURL+=()
EXCLUDE+=(${LIBDIR}/rustlib/{install.log,uninstall.sh,manifest-rust*,components})
# build_in_sourcedir
# sourcesubdir_append src
#mee_extract() {
# bee_extract "${@}"
#}
#mee_patch() {
# bee_patch "${@}"
#}
export RUST_BACKTRACE=1
mee_configure() {
#rust creates .cargo dir in your home
export HOME=${S}
${S}/configure --prefix=${PREFIX} \
--mandir=${MANDIR} \
--libdir=${LIBDIR} \
--enable-local-rust \
--disable-rpath \
--enable-extended \
--disable-codegen-tests
}
mee_build() {
CC=clang CXX=clang++ start_cmd make ${BEE_MAKEFLAGS}
}
mee_install() {
start_cmd make install DESTDIR=${D}
start_cmd cd ${D}${LIBDIR}
for i in *.so; do
ln -vfs ${LIBDIR}/${i} rustlib/x86_64-unknown-linux-gnu/lib/${i}
done
start_cmd rm -rf ${D}/usr/share/doc/rust
}
## by default this may be 'make install DESTDIR="${D}"'