mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-04 18:45:52 +00:00
87e8844c72
This commit has been automatically submitted by Github Actions.
39 lines
1.6 KiB
Bash
39 lines
1.6 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://chezmoi.io
|
|
TERMUX_PKG_DESCRIPTION="Manage your dotfiles across multiple machines"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91"
|
|
TERMUX_PKG_VERSION="2.55.0"
|
|
TERMUX_PKG_SRCURL=https://github.com/twpayne/chezmoi/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=1fa36ce5ffff5a49e5a69c0910b866086749f359ae7afa06cbcc17b3bc9d8ca0
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
termux_step_make() {
|
|
termux_setup_golang
|
|
|
|
cd "$TERMUX_PKG_SRCDIR"
|
|
|
|
mkdir -p "${TERMUX_PKG_BUILDDIR}/src/github.com/twpayne"
|
|
cp -a "${TERMUX_PKG_SRCDIR}" "${TERMUX_PKG_BUILDDIR}/src/github.com/twpayne/chezmoi"
|
|
cd "${TERMUX_PKG_BUILDDIR}/src/github.com/twpayne/chezmoi"
|
|
|
|
go get -d -v
|
|
go build -tags noupgrade,noembeddocs \
|
|
-ldflags "-X github.com/twpayne/chezmoi/cmd.DocsDir=$TERMUX_PREFIX/share/doc/chezmoi -X main.version=${TERMUX_PKG_VERSION}" .
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 ${TERMUX_PKG_BUILDDIR}/src/github.com/twpayne/chezmoi/chezmoi $TERMUX_PREFIX/bin/chezmoi
|
|
|
|
mkdir -p $TERMUX_PREFIX/share/bash-completion/completions \
|
|
$TERMUX_PREFIX/share/fish/completions \
|
|
$TERMUX_PREFIX/share/zsh/site-functions \
|
|
$TERMUX_PREFIX/share/doc/chezmoi
|
|
|
|
install -Dm600 ${TERMUX_PKG_BUILDDIR}/src/github.com/twpayne/chezmoi/completions/chezmoi-completion.bash \
|
|
$TERMUX_PREFIX/share/bash-completion/completions/chezmoi
|
|
install -Dm600 ${TERMUX_PKG_BUILDDIR}/src/github.com/twpayne/chezmoi/completions/chezmoi.fish \
|
|
$TERMUX_PREFIX/share/fish/vendor_completions.d/chezmoi.fish
|
|
install -Dm600 ${TERMUX_PKG_BUILDDIR}/src/github.com/twpayne/chezmoi/completions/chezmoi.zsh \
|
|
$TERMUX_PREFIX/share/zsh/site-functions/_chezmoi
|
|
}
|