blob: 67fcf3b1958e59576d2d8b03cf2f5168e4a3307a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=chezmoi
pkgver=2.4.0
pkgrel=1
pkgdesc="Manage your dotfiles across multiple machines, securely."
url="https://www.chezmoi.io/"
arch="all"
license="MIT"
makedepends="go"
options="!check chmod-clean" # no test suite
subpackages="
$pkgname-doc
$pkgname-bash-completion
$pkgname-zsh-completion
$pkgname-fish-completion
"
source="$pkgname-$pkgver.tar.gz::https://github.com/twpayne/chezmoi/archive/v$pkgver.tar.gz"
export GOPATH="$srcdir"
build() {
go build \
-ldflags "
-X \"main.version=$pkgver\" \
-X \"main.date=$(date --utc +%Y-%m-%dT%H:%M:%SZ)\" \
-X \"github.com/twpayne/chezmoi/cmd.DocsDir=/usr/share/doc/chezmoi/\"
" \
-tags noupgrade \
-tags noembeddocs
make completions
}
package() {
install -Dm0755 chezmoi "$pkgdir"/usr/bin/chezmoi
install -Dm0644 completions/chezmoi-completion.bash \
"$pkgdir"/usr/share/bash-completion/completions/$pkgname
install -Dm0644 completions/chezmoi.zsh \
"$pkgdir"/usr/share/zsh/site-functions/_$pkgname
install -Dm0644 completions/chezmoi.fish \
"$pkgdir"/usr/share/fish/completions/$pkgname.fish
}
doc() {
default_doc
mkdir -p "$subpkgdir/usr/share/doc/chezmoi"
cp "$builddir/docs/"* "$subpkgdir/usr/share/doc/chezmoi"
}
sha512sums="
0fb74262321bf02a37062364b150218b04fa57a9e400b93b1a878fac48628bd07da6a9f70d3b6036143c9deb84de575556a1db42311a45dcea0903c434fa8145 chezmoi-2.4.0.tar.gz
"
|