mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-06 10:53:21 +00:00
* chore(main/lsd): Remove workaround with zlib library This partially reverts c1563167830b077953244fe9727d7fe5d084021a commit. * chore(main/lsd): Install shell completions
22 lines
961 B
Bash
22 lines
961 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.1.2"
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://github.com/lsd-rs/lsd/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=cd80dae9a8f6c4c2061f79084468ea6e04c372e932e3712a165119417960e14e
|
|
TERMUX_PKG_DEPENDS="zlib"
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_pre_configure() {
|
|
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}"
|
|
}
|