Files
termux-packages/packages/lsd/build.sh
termux-pacman-bot 42a8b604b5 chore(tree-wide): declare termux_setup_rust dependency
Explicitly declare termux_setup_rust in build script after removal in
termux_step_make_install. This is done to quickly identify which
packages are Rust based.

%ci:no-build
2025-11-12 17:39:38 +00:00

23 lines
969 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/lsd-rs/lsd
TERMUX_PKG_DESCRIPTION="Next gen ls command"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="Krishna Kanhaiya @kcubeterm"
TERMUX_PKG_VERSION="1.2.0"
TERMUX_PKG_SRCURL=https://github.com/lsd-rs/lsd/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=dae8d43087686a4a1de0584922608e9cbab00727d0f72e4aa487860a9cbfeefa
TERMUX_PKG_DEPENDS="zlib"
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
termux_setup_rust
export SHELL_COMPLETIONS_DIR=completions
}
termux_step_post_make_install() {
install -Dm644 "completions/${TERMUX_PKG_NAME}.bash" "${TERMUX_PREFIX}/share/bash-completion/completions/${TERMUX_PKG_NAME}"
install -Dm644 "completions/${TERMUX_PKG_NAME}.fish" "${TERMUX_PREFIX}/share/fish/vendor_completions.d/${TERMUX_PKG_NAME}.fish"
install -Dm644 "completions/_${TERMUX_PKG_NAME}" "${TERMUX_PREFIX}/share/zsh/site-functions/_${TERMUX_PKG_NAME}"
}