Browse Source
build-package.sh: delete .crates2.json in make_install step
master
Leonid Plyushch
5 years ago
No known key found for this signature in database
GPG Key ID: 45F2964132545795
2 changed files with
2 additions and
5 deletions
-
scripts/build/termux_step_make_install.sh
-
scripts/build/termux_step_massage.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 |
|
|
|
} |
|
|
|
|
|
@ -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 |
|
|
|