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-08-16 09:36:20 +02:00
|
|
|
TERMUX_PKG_VERSION=1.8.4
|
2020-05-03 07:25:27 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/twpayne/chezmoi/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2020-08-16 09:36:20 +02:00
|
|
|
TERMUX_PKG_SHA256=655f8a478d1aeddc4cfa5b10ddd780bcd30d3e64106697b14ecffb95fff0b133
|
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
|
|
|
|
2020-06-20 20:17:54 +02:00
|
|
|
go get -d -v
|
2020-06-13 13:35:41 +02:00
|
|
|
go build
|
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
|
|
|
|
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
|
|
|
|
|
2020-08-08 17:25:49 +02:00
|
|
|
install ${TERMUX_PKG_BUILDDIR}/src/github.com/twpayne/chezmoi/completions/chezmoi-completion.bash \
|
2020-05-03 07:25:27 +02:00
|
|
|
$TERMUX_PREFIX/share/bash-completions/chezmoi
|
2020-08-08 17:25:49 +02:00
|
|
|
install ${TERMUX_PKG_BUILDDIR}/src/github.com/twpayne/chezmoi/completions/chezmoi.fish \
|
2020-05-03 07:25:27 +02:00
|
|
|
$TERMUX_PREFIX/share/fish/completions/chezmoi.fish
|
|
|
|
|
2020-08-08 17:25:49 +02:00
|
|
|
install ${TERMUX_PKG_BUILDDIR}/src/github.com/twpayne/chezmoi/docs/{FAQ,HOWTO,QUICKSTART,REFERENCE}.md \
|
2020-05-03 07:25:27 +02:00
|
|
|
$TERMUX_PREFIX/share/doc/chezmoi/
|
|
|
|
}
|