cargo.sh: don't hardcode the path.
Clean up the cargo remnants in the post install phase.
This commit is contained in:
parent
b1455c4744
commit
3610a35271
1 changed files with 5 additions and 1 deletions
|
@ -16,9 +16,13 @@ do_check() {
|
|||
|
||||
do_install() {
|
||||
: ${make_cmd:=cargo}
|
||||
: ${make_install_args:=--path .}
|
||||
|
||||
${make_cmd} install --path . --target ${RUST_TARGET} --root="${DESTDIR}/usr" \
|
||||
${make_cmd} install --target ${RUST_TARGET} --root="${DESTDIR}/usr" \
|
||||
--locked ${configure_args} ${make_install_args}
|
||||
}
|
||||
|
||||
post_install() {
|
||||
rm -f "${DESTDIR}"/usr/.crates.toml
|
||||
rm -f "${DESTDIR}"/usr/.crates2.json
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue