Browse Source

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

master
Leonid Plyushch 5 years ago
parent
commit
fde2193749
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 3
      scripts/build/termux_step_make_install.sh
  2. 4
      scripts/build/termux_step_massage.sh

3
scripts/build/termux_step_make_install.sh

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

4
scripts/build/termux_step_massage.sh

@ -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…
Cancel
Save