termux-packages/packages/navi/build.sh

21 lines
741 B
Bash
Raw Normal View History

2021-04-20 19:18:23 +02:00
TERMUX_PKG_HOMEPAGE=https://github.com/denisidoro/navi
TERMUX_PKG_DESCRIPTION="An interactive cheatsheet tool for the command-line"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.18.0
2021-04-20 19:18:23 +02:00
TERMUX_PKG_SRCURL=https://github.com/denisidoro/navi/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=be36c9021a23c94b585e6dc328495a818dea7de6057572ab25858f45f95e2312
TERMUX_PKG_AUTO_UPDATE=true
2021-08-17 20:13:25 +02:00
TERMUX_PKG_DEPENDS="fzf, git"
2021-04-20 19:18:23 +02:00
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
rm -f Makefile
}
termux_step_make_install() {
termux_setup_rust
cargo build --jobs $TERMUX_MAKE_PROCESSES --target $CARGO_TARGET_NAME --release
install -Dm755 -t $TERMUX_PREFIX/bin target/${CARGO_TARGET_NAME}/release/navi
}