build-package.sh: delete .crates2.json in make_install step
This commit is contained in:
parent
c7a91883cd
commit
9db15acfce
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user