0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-09-24 07:12:30 +00:00
Files
termux-packages/packages/just/build.sh
Termux Github Actions f70dfb1708 bump(main/just): 1.40.0
This commit has been automatically submitted by Github Actions.
2025-03-10 01:43:40 +00:00

29 lines
1.3 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://just.systems
TERMUX_PKG_DESCRIPTION="A handy way to save and run project-specific commands"
TERMUX_PKG_LICENSE="CC0-1.0"
TERMUX_PKG_MAINTAINER="@flipee"
TERMUX_PKG_VERSION="1.40.0"
TERMUX_PKG_SRCURL=https://github.com/casey/just/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=e0d48dcc7a086c5746b7f281a40e615c290cddf9c06134198c703dff2f62c1c4
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_post_configure() {
# clash with rust host build
# causes 32bit builds to fail if set
unset CFLAGS
}
termux_step_post_make_install() {
mkdir -p "${TERMUX_PREFIX}/share/man/man1"
mkdir -p "${TERMUX_PREFIX}/share/zsh/site-functions"
mkdir -p "${TERMUX_PREFIX}/share/bash-completion/completions"
mkdir -p "${TERMUX_PREFIX}/share/fish/vendor_completions.d"
mkdir -p "${TERMUX_PREFIX}/share/elvish/lib"
cargo run -- --man | gzip -c -f -n > "${TERMUX_PREFIX}/share/man/man1/just.1.gz"
cargo run -- --completions zsh > "${TERMUX_PREFIX}/share/zsh/site-functions/_just"
cargo run -- --completions bash > "${TERMUX_PREFIX}/share/bash-completion/completions/just"
cargo run -- --completions fish > "${TERMUX_PREFIX}/share/fish/vendor_completions.d/just.fish"
cargo run -- --completions elvish > "${TERMUX_PREFIX}/share/elvish/lib/just.elv"
}