Skip to content
Permalink
3e764aeff1
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 43 lines (30 sloc) 812 Bytes
#!/usr/bin/env beesh
# BEE_VERSION rustc-1.16.0-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}
}
mee_build() {
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
}
## by default this may be 'make install DESTDIR="${D}"'