cargo.sh: don't hardcode the path.

Clean up the cargo remnants in the post install phase.
This commit is contained in:
travankor 2020-04-06 00:38:29 -07:00 committed by Helmut Pozimski
parent b1455c4744
commit 3610a35271
1 changed files with 5 additions and 1 deletions

View File

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