2020-05-03 07:25:27 +02:00
|
|
|
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"
|
2022-03-04 07:11:33 +01:00
|
|
|
TERMUX_PKG_VERSION=2.13.1
|
2020-05-03 07:25:27 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/twpayne/chezmoi/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2022-03-04 07:11:33 +01:00
|
|
|
TERMUX_PKG_SHA256=52fba493bb9f987a7971bcc187e7af9c01277b00daa91e4113e2e1f68c634ae2
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2020-05-03 07:25:27 +02:00
|
|
|
|
2020-08-08 17:25:49 +02:00
|
|
|
termux_step_make() {
|
2020-05-03 07:25:27 +02:00
|
|
|
termux_setup_golang
|
|
|
|
|
|
|
|
cd "$TERMUX_PKG_SRCDIR"
|
|
|
|
|
2020-08-08 17:25:49 +02:00
|
|
|
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"
|
2020-05-03 07:25:27 +02:00
|
|
|
|
2021-07-10 16:00:18 +02:00
|
|
|
go get -d -v
|
2020-10-17 20:45:54 +02:00
|
|
|
go build -tags noupgrade,noembeddocs \
|
|
|
|
-ldflags "-X github.com/twpayne/chezmoi/cmd.DocsDir=$TERMUX_PREFIX/share/doc/chezmoi -X main.version=${TERMUX_PKG_VERSION}" .
|
2020-08-08 17:25:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
install -Dm700 ${TERMUX_PKG_BUILDDIR}/src/github.com/twpayne/chezmoi/chezmoi $TERMUX_PREFIX/bin/chezmoi
|
2020-06-20 20:17:54 +02:00
|
|
|
|
2021-08-04 00:33:55 +02:00
|
|
|
mkdir -p $TERMUX_PREFIX/share/bash-completion/completions \
|
2020-05-03 07:25:27 +02:00
|
|
|
$TERMUX_PREFIX/share/fish/completions \
|
2021-04-18 03:17:08 +02:00
|
|
|
$TERMUX_PREFIX/share/zsh/site-functions \
|
2020-05-03 07:25:27 +02:00
|
|
|
$TERMUX_PREFIX/share/doc/chezmoi
|
|
|
|
|
2022-01-26 14:26:48 +01:00
|
|
|
install -Dm600 ${TERMUX_PKG_BUILDDIR}/src/github.com/twpayne/chezmoi/completions/chezmoi-completion.bash \
|
2021-08-04 00:33:55 +02:00
|
|
|
$TERMUX_PREFIX/share/bash-completion/completions/chezmoi
|
2022-01-26 14:26:48 +01:00
|
|
|
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 \
|
2021-04-18 03:17:08 +02:00
|
|
|
$TERMUX_PREFIX/share/zsh/site-functions/_chezmoi
|
2020-05-03 07:25:27 +02:00
|
|
|
}
|