diff options
author | Cem Keylan <cem@ckyln.com> | 2021-02-18 04:07:54 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-02-18 04:07:54 +0300 |
commit | 8ce59664d0613af5269fdd9fcdd0097b2708d554 (patch) | |
tree | dd09b0d039bab50db726335abfc9e206e3e901a7 /community/chezmoi/build | |
parent | 0c4b6e88c088799232b7361cb7a0bf6285bbe5e0 (diff) | |
download | repository-8ce59664d0613af5269fdd9fcdd0097b2708d554.tar.gz |
chezmoi: add new package at 1.8.11
Diffstat (limited to 'community/chezmoi/build')
-rwxr-xr-x | community/chezmoi/build | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/community/chezmoi/build b/community/chezmoi/build new file mode 100755 index 00000000..02ccd498 --- /dev/null +++ b/community/chezmoi/build @@ -0,0 +1,8 @@ +#!/bin/sh -e + +export GOPATH=$PWD/gopath +trap "go clean -modcache" EXIT INT +go mod vendor + +CGO_ENABLED=0 go build -ldflags="-X 'main.version=$2'" +install -Dm755 chezmoi "$1/usr/bin/chezmoi" |