59f1c7b183
This will need some more work. Currently
termux_create_haskell_debscripts is run for all packages, even
non-haskell ones, which causes errors in postinst and prerm scripts in
an ugly way.
This reverts commit dc2474b2c2
.
27 lines
840 B
Bash
27 lines
840 B
Bash
termux_step_make_install() {
|
|
[ "$TERMUX_PKG_METAPACKAGE" = "true" ] && return
|
|
|
|
if test -f build.ninja; then
|
|
ninja -w dupbuild=warn -j $TERMUX_MAKE_PROCESSES install
|
|
elif ls ./*akefile &> /dev/null || [ -n "$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 \
|
|
--jobs $TERMUX_MAKE_PROCESSES \
|
|
--path . \
|
|
--force \
|
|
--locked \
|
|
--no-track \
|
|
--target $CARGO_TARGET_NAME \
|
|
--root $TERMUX_PREFIX \
|
|
$TERMUX_PKG_EXTRA_CONFIGURE_ARGS
|
|
fi
|
|
}
|