2021-06-07 15:17:23 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/rust-analyzer/rust-analyzer
|
|
|
|
TERMUX_PKG_DESCRIPTION="A Rust compiler front-end for IDEs"
|
|
|
|
TERMUX_PKG_LICENSE="MIT, Apache-2.0"
|
|
|
|
TERMUX_PKG_LICENSE_FILE="LICENSE-MIT, LICENSE-APACHE"
|
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-01-26 09:40:31 +01:00
|
|
|
TERMUX_PKG_VERSION=20220124
|
2021-06-07 15:17:23 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/rust-analyzer/rust-analyzer/archive/refs/tags/${TERMUX_PKG_VERSION:0:4}-${TERMUX_PKG_VERSION:4:2}-${TERMUX_PKG_VERSION:6:2}.tar.gz
|
2022-01-26 09:40:31 +01:00
|
|
|
TERMUX_PKG_SHA256=634dc4fda60674b10d1f945dfb9f64a6a8c0e41c6fbb42bffbeeb3bae16fb1db
|
2021-06-07 15:17:23 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
termux_setup_rust
|
|
|
|
cargo build --jobs $TERMUX_MAKE_PROCESSES --target $CARGO_TARGET_NAME --release
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
install -Dm755 -t $TERMUX_PREFIX/bin target/${CARGO_TARGET_NAME}/release/rust-analyzer
|
|
|
|
}
|