build-package.sh: delete .crates2.json in make_install step

This commit is contained in:
Leonid Pliushch 2020-03-15 23:42:21 +02:00
parent c7a91883cd
commit 9db15acfce
2 changed files with 2 additions and 5 deletions

View File

@ -21,6 +21,7 @@ termux_step_make_install() {
--root $TERMUX_PREFIX \
$TERMUX_PKG_EXTRA_CONFIGURE_ARGS
# https://github.com/rust-lang/cargo/issues/3316:
rm $TERMUX_PREFIX/.crates.toml
rm -f $TERMUX_PREFIX/.crates.toml
rm -f $TERMUX_PREFIX/.crates2.json
fi
}

View File

@ -37,10 +37,6 @@ termux_step_massage() {
sed --follow-symlinks -i -E "1 s@^#\!(.*)/bin/(.*)@#\!$TERMUX_PREFIX/bin/\2@" "$file"
done < <(find -L . -type f -print0)
# Remove unneeded files created by rust/cargo.
rm -f .crates2.json
# Remove files specified in TERMUX_PKG_RM_AFTER_INSTALL.
test ! -z "$TERMUX_PKG_RM_AFTER_INSTALL" && rm -Rf $TERMUX_PKG_RM_AFTER_INSTALL
find . -type d -empty -delete # Remove empty directories