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"
|
2020-06-26 22:12:27 +02:00
|
|
|
TERMUX_PKG_VERSION=1.8.3
|
2020-05-03 07:25:27 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/twpayne/chezmoi/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2020-06-26 22:12:27 +02:00
|
|
|
TERMUX_PKG_SHA256=7844371ae748eda0e8432766345dbea718a5fb521d5f6e8fe7d8948935b1947b
|
2020-05-03 07:25:27 +02:00
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
termux_setup_golang
|
|
|
|
|
|
|
|
cd "$TERMUX_PKG_SRCDIR"
|
|
|
|
|
|
|
|
export GOPATH="${TERMUX_PKG_BUILDDIR}"
|
|
|
|
mkdir -p "${GOPATH}/src/github.com/twpayne"
|
|
|
|
cp -a "${TERMUX_PKG_SRCDIR}" "${GOPATH}/src/github.com/twpayne/chezmoi"
|
|
|
|
cd "${GOPATH}/src/github.com/twpayne/chezmoi"
|
|
|
|
|
2020-06-20 20:17:54 +02:00
|
|
|
go get -d -v
|
2020-06-13 13:35:41 +02:00
|
|
|
go build
|
|
|
|
install -Dm700 -t $TERMUX_PREFIX/bin/ ${GOPATH}/src/github.com/twpayne/chezmoi/chezmoi
|
2020-06-20 20:17:54 +02:00
|
|
|
|
2020-05-03 07:25:27 +02:00
|
|
|
mkdir -p $TERMUX_PREFIX/share/bash-completions \
|
|
|
|
$TERMUX_PREFIX/share/fish/completions \
|
|
|
|
$TERMUX_PREFIX/share/doc/chezmoi
|
|
|
|
|
|
|
|
install ${GOPATH}/src/github.com/twpayne/chezmoi/completions/chezmoi-completion.bash \
|
|
|
|
$TERMUX_PREFIX/share/bash-completions/chezmoi
|
|
|
|
install ${GOPATH}/src/github.com/twpayne/chezmoi/completions/chezmoi.fish \
|
|
|
|
$TERMUX_PREFIX/share/fish/completions/chezmoi.fish
|
|
|
|
|
|
|
|
install ${GOPATH}/src/github.com/twpayne/chezmoi/docs/{FAQ,HOWTO,QUICKSTART,REFERENCE}.md \
|
|
|
|
$TERMUX_PREFIX/share/doc/chezmoi/
|
|
|
|
}
|