aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/chezmoi/APKBUILD23
1 files changed, 19 insertions, 4 deletions
diff --git a/testing/chezmoi/APKBUILD b/testing/chezmoi/APKBUILD
index bb4a1d1555..bf0872e991 100644
--- a/testing/chezmoi/APKBUILD
+++ b/testing/chezmoi/APKBUILD
@@ -1,15 +1,16 @@
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname="chezmoi"
-pkgver="1.7.3"
+pkgver="1.7.4"
pkgrel=0
pkgdesc="Manage your dotfiles across multiple machines, securely."
url="https://www.chezmoi.io/"
-arch="all !x86 !armv7 !armhf" # build failure
+arch="all"
license="MIT"
makedepends="go"
options="!check chmod-clean" # no test suite
subpackages="
+ $pkgname-doc
$pkgname-bash-completion:bashcomp:noarch
$pkgname-zsh-completion:zshcomp:noarch
$pkgname-fish-completion:fishcomp:noarch
@@ -19,7 +20,14 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/twpayne/chezmoi/archive/v$pk
export GOPATH="$srcdir"
build() {
- go build
+ go build \
+ -ldflags "
+ -X \"github.com/twpayne/chezmoi/cmd.VersionStr=$pkgver\" \
+ -X \"github.com/twpayne/chezmoi/cmd.Date=$(date -Iminutes)\" \
+ -X \"github.com/twpayne/chezmoi/cmd.DocsDir=/usr/share/doc/chezmoi/\"
+ " \
+ -tags noupgrade \
+ -tags noembeddocs
make completions
}
@@ -27,6 +35,13 @@ package() {
install -Dm0755 chezmoi "$pkgdir"/usr/bin/chezmoi
}
+doc() {
+ default_doc
+ mkdir -p "$subpkgdir/usr/share/doc/chezmoi"
+ ls -l "$builddir"/docs
+ cp "$builddir/docs/"* "$subpkgdir/usr/share/doc/chezmoi"
+}
+
bashcomp() {
pkgdesc="additional scripts for bash like shell completion"
depends=""
@@ -62,4 +77,4 @@ cleanup_srcdir() {
default_cleanup_srcdir
}
-sha512sums="36d274680c53dc3bdf8a3277f69d209ce5bf12e0a80811c38a3e65d58653b321904ae7c1b70eaae7764bb0abdaa013885d326403e44e983f9a9144af1c639c72 chezmoi-1.7.3.tar.gz"
+sha512sums="ff7e35446a2f7cf835d95b959dfdcdc31659960c9b2a1766dd03f5132330995aa1b367865f8629cadc176d7ef9d71fc82f9f0337267c321efdc14158444ca1e8 chezmoi-1.7.4.tar.gz"