Skip to content

Commit

Permalink
try different method
Browse files Browse the repository at this point in the history
  • Loading branch information
mbekkomo committed Jun 9, 2024
1 parent e44606f commit a1b5819
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/gleam/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit a1b5819

Please sign in to comment.