0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 00:10:52 +00:00
Termux Github Actions 9ed479864e bump(main/glab-cli): 1.50.0
This commit has been automatically submitted by Github Actions.
2024-11-28 18:17:57 +00:00

32 lines
1.2 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://gitlab.com/gitlab-org/cli
TERMUX_PKG_DESCRIPTION="A GitLab CLI tool bringing GitLab to your command line"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.50.0"
TERMUX_PKG_SRCURL=https://gitlab.com/gitlab-org/cli/-/archive/v${TERMUX_PKG_VERSION}/cli-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=4e520ca8ead7ee09e9796f2c7825ad50e693fa3b19e342355dc04b2db2a4fc9d
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_EXTRA_MAKE_ARGS="GLAB_VERSION=${TERMUX_PKG_VERSION}"
termux_step_pre_configure() {
termux_setup_golang
}
termux_step_make_install() {
install -Dm700 -t "${TERMUX_PREFIX}"/bin bin/glab
install -Dm644 /dev/null "$TERMUX_PREFIX"/share/bash-completion/completions/glab.bash
install -Dm644 /dev/null "$TERMUX_PREFIX"/share/zsh/site-functions/_glab
install -Dm644 /dev/null "$TERMUX_PREFIX"/share/fish/vendor_completions.d/glab.fish
}
termux_step_create_debscripts() {
cat <<- EOF > ./postinst
#!${TERMUX_PREFIX}/bin/sh
glab completion -s bash > ${TERMUX_PREFIX}/share/bash-completion/completions/glab.bash
glab completion -s zsh > ${TERMUX_PREFIX}/share/zsh/site-functions/_glab
glab completion -s fish > ${TERMUX_PREFIX}/share/fish/vendor_completions.d/glab.fish
EOF
}