c7f40a162c
Speeds up chezmoi+pass a lot if ~/.password-store contains many secrets. Will check so that it does not have any side effects in desktop environments before opening a PR upstream.
38 lines
1.4 KiB
Bash
38 lines
1.4 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=1.8.3
|
|
TERMUX_PKG_REVISION=2
|
|
TERMUX_PKG_SRCURL=https://github.com/twpayne/chezmoi/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=7844371ae748eda0e8432766345dbea718a5fb521d5f6e8fe7d8948935b1947b
|
|
|
|
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
|
|
}
|
|
|
|
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-completions \
|
|
$TERMUX_PREFIX/share/fish/completions \
|
|
$TERMUX_PREFIX/share/doc/chezmoi
|
|
|
|
install ${TERMUX_PKG_BUILDDIR}/src/github.com/twpayne/chezmoi/completions/chezmoi-completion.bash \
|
|
$TERMUX_PREFIX/share/bash-completions/chezmoi
|
|
install ${TERMUX_PKG_BUILDDIR}/src/github.com/twpayne/chezmoi/completions/chezmoi.fish \
|
|
$TERMUX_PREFIX/share/fish/completions/chezmoi.fish
|
|
|
|
install ${TERMUX_PKG_BUILDDIR}/src/github.com/twpayne/chezmoi/docs/{FAQ,HOWTO,QUICKSTART,REFERENCE}.md \
|
|
$TERMUX_PREFIX/share/doc/chezmoi/
|
|
}
|