[arch-commits] Commit in chezmoi/trunk (PKGBUILD)

Daurnimator daurnimator at archlinux.org
Fri Sep 20 12:29:47 UTC 2019


    Date: Friday, September 20, 2019 @ 12:29:46
  Author: daurnimator
Revision: 511231

upgpkg: chezmoi 1.6.5-1

update to 1.6.5

Modified:
  chezmoi/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-20 09:10:46 UTC (rev 511230)
+++ PKGBUILD	2019-09-20 12:29:46 UTC (rev 511231)
@@ -3,9 +3,9 @@
 # Contributor:  <godeater at gmail.com>
 
 pkgname=chezmoi
-pkgver=1.6.2
+pkgver=1.6.5
 pkgrel=1
-pkgdesc="Multi-machine dotfile management system"
+pkgdesc="Manage your dotfiles across multiple machines"
 arch=('x86_64')
 url='https://github.com/twpayne/chezmoi'
 license=('MIT')
@@ -12,15 +12,18 @@
 makedepends=('go-pie' 'git')
 depends=('glibc')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/twpayne/chezmoi/archive/v${pkgver}.tar.gz")
-sha256sums=('543699d94b85da92946fb9c2c54704b2ecb77206564f73863b4e76a4f9bed012')
+sha256sums=('340fb4a2bfbee6c02702587001c3c14c73fc87d5f7fa2d30e34732f106dc0ce9')
 
 build() {
   cd "$pkgname-$pkgver"
 
   go build \
+    -tags noupgrade,noembeddocs \
     -gcflags "all=-trimpath=${PWD}" \
     -asmflags "all=-trimpath=${PWD}" \
-    -ldflags "-extldflags ${LDFLAGS}" \
+    -ldflags "-X github.com/twpayne/chezmoi/cmd.DocsDir=/usr/share/doc/$pkgname \
+              -X github.com/twpayne/chezmoi/cmd.VersionStr=$pkgver \
+              -extldflags ${LDFLAGS}" \
     .
 }
 
@@ -29,6 +32,9 @@
 
   install -D "$pkgname" "$pkgdir/usr/bin/$pkgname"
 
+  mkdir -p "$pkgdir/usr/share/doc/$pkgname"
+  install -Dm644 docs/* "$pkgdir/usr/share/doc/$pkgname/"
+
   install -Dm644 completions/chezmoi-completion.bash "$pkgdir/usr/share/bash-completion/completions/chezmoi"
   install -Dm644 completions/chezmoi.fish "$pkgdir/usr/share/fish/vendor_completions.d/chezmoi.fish"
   install -Dm644 completions/chezmoi.zsh "$pkgdir/usr/share/zsh/site-functions/_chezmoi"


More information about the arch-commits mailing list