mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-19 16:52:16 +00:00
3b80844a32
This commit has been automatically submitted by Github Actions.
23 lines
905 B
Bash
23 lines
905 B
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/bytecodealliance/wasm-component-ld
|
|
TERMUX_PKG_DESCRIPTION="Command line linker for creating WebAssembly components"
|
|
TERMUX_PKG_LICENSE="Apache-2.0, MIT"
|
|
TERMUX_PKG_LICENSE_FILE="LICENSE-APACHE, LICENSE-Apache-2.0_WITH_LLVM-exception, LICENSE-MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="0.5.11"
|
|
TERMUX_PKG_SRCURL=https://github.com/bytecodealliance/wasm-component-ld/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=323328b18a1e13e35e36339ce59c6e7c4d1800b4fbdd78ba6fa83f3358324414
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
termux_step_pre_configure() {
|
|
termux_setup_rust
|
|
}
|
|
|
|
termux_step_make() {
|
|
cargo build --jobs "${TERMUX_PKG_MAKE_PROCESSES}" --target "${CARGO_TARGET_NAME}" --release
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm755 -t "${TERMUX_PREFIX}/bin" "target/${CARGO_TARGET_NAME}/release/wasm-component-ld"
|
|
}
|