Henrik Grimler
6 years ago
committed by
Leonid Plyushch
2 changed files with 25 additions and 23 deletions
@ -0,0 +1,23 @@ |
|||
termux_step_make_install() { |
|||
if test -f build.ninja; then |
|||
ninja -w dupbuild=warn -j $TERMUX_MAKE_PROCESSES install |
|||
elif ls ./*akefile &> /dev/null || [ ! -z "$TERMUX_PKG_EXTRA_MAKE_ARGS" ]; then |
|||
: "${TERMUX_PKG_MAKE_INSTALL_TARGET:="install"}" |
|||
# Some packages have problem with parallell install, and it does not buy much, so use -j 1. |
|||
if [ -z "$TERMUX_PKG_EXTRA_MAKE_ARGS" ]; then |
|||
make -j 1 ${TERMUX_PKG_MAKE_INSTALL_TARGET} |
|||
else |
|||
make -j 1 ${TERMUX_PKG_EXTRA_MAKE_ARGS} ${TERMUX_PKG_MAKE_INSTALL_TARGET} |
|||
fi |
|||
elif test -f Cargo.toml; then |
|||
termux_setup_rust |
|||
cargo install \ |
|||
--path . \ |
|||
--force \ |
|||
--target $CARGO_TARGET_NAME \ |
|||
--root $TERMUX_PREFIX \ |
|||
$TERMUX_PKG_EXTRA_CONFIGURE_ARGS |
|||
# https://github.com/rust-lang/cargo/issues/3316: |
|||
rm $TERMUX_PREFIX/.crates.toml |
|||
fi |
|||
} |
Loading…
Reference in new issue