Browse Source

Use TERMUX_PKG_EXTRA_CONFIGURE_ARGS for rust

android-5
Fredrik Fornwall 6 years ago
parent
commit
16c3556462
  1. 6
      build-package.sh

6
build-package.sh

@ -1013,8 +1013,10 @@ termux_step_make_install() {
fi fi
elif test -f Cargo.toml; then elif test -f Cargo.toml; then
termux_setup_rust termux_setup_rust
cargo build --release --target $CARGO_TARGET_NAME cargo install --force \
cargo install --force --target $CARGO_TARGET_NAME --root $TERMUX_PREFIX --target $CARGO_TARGET_NAME \
--root $TERMUX_PREFIX \
$TERMUX_PKG_EXTRA_CONFIGURE_ARGS
# https://github.com/rust-lang/cargo/issues/3316: # https://github.com/rust-lang/cargo/issues/3316:
rm $TERMUX_PREFIX/.crates.toml rm $TERMUX_PREFIX/.crates.toml
fi fi

Loading…
Cancel
Save