Files
termux-packages/packages/lazygit/build.sh
termux-pacman-bot ff4dc35e19 bump(main/lazygit): 0.52.0
This commit has been automatically submitted by Github Actions.
2025-06-07 08:07:24 +00:00

43 lines
1.3 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/jesseduffield/lazygit
TERMUX_PKG_DESCRIPTION="Simple terminal UI for git commands"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Krishna kanhaiya @kcubeterm"
TERMUX_PKG_VERSION="0.52.0"
TERMUX_PKG_SRCURL=https://github.com/jesseduffield/lazygit/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=2d6b045105cca36fb4a9ea9fa8834bab70f99a71dcb6f7a1aea11184ac1f66f8
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_RECOMMENDS=git
TERMUX_PKG_SUGGESTS=diff-so-fancy
termux_step_make() {
termux_setup_golang
cd "$TERMUX_PKG_SRCDIR"
mkdir -p "${TERMUX_PKG_BUILDDIR}/src/github.com/jesseduffield"
cp -a "${TERMUX_PKG_SRCDIR}" "${TERMUX_PKG_BUILDDIR}/src/github.com/jesseduffield/lazygit"
cd "${TERMUX_PKG_BUILDDIR}/src/github.com/jesseduffield/lazygit"
go build \
-trimpath \
-mod=readonly \
-modcacherw \
-ldflags "\
-X main.date=$(date --date=@${SOURCE_DATE_EPOCH} -u +%Y-%m-%dT%H:%M:%SZ) \
-X main.buildSource=termux \
-X main.version=${TERMUX_PKG_VERSION} \
-X main.commit=v${TERMUX_PKG_VERSION} \
"
}
termux_step_make_install() {
mkdir -p $TERMUX_PREFIX/share/doc/lazygit
install -Dm700 ${TERMUX_PKG_BUILDDIR}/src/github.com/jesseduffield/lazygit/lazygit \
$TERMUX_PREFIX/bin/lazygit
cp -a ${TERMUX_PKG_BUILDDIR}/src/github.com/jesseduffield/lazygit/docs/* \
$TERMUX_PREFIX/share/doc/lazygit/
}