diff --git a/packages/gleam/build.sh b/packages/gleam/build.sh index 5bab4eacefeccc3..bb38f90985c15cd 100644 --- a/packages/gleam/build.sh +++ b/packages/gleam/build.sh @@ -9,6 +9,14 @@ TERMUX_PKG_DEPENDS="erlang" TERMUX_PKG_SUGGESTS="nodejs" TERMUX_PKG_BUILD_IN_SRC=true -termux_step_pre_configure() { +termux_step_configure() { termux_setup_rust } + +termux_step_make() { + cargo build --jobs "${TERMUX_MAKE_PROCESSES}" --target "${CARGO_TARGET_NAME}" --release +} + +termux_step_make_install() { + install -Dm700 -t "${TERMUX_PREFIX}/bin" "target/${CARGO_TARGET_NAME}/release/gleam" +}