[arch-commits] Commit in chezmoi/repos/community-x86_64 (PKGBUILD PKGBUILD)

Daurnimator daurnimator at archlinux.org
Sat Jul 4 16:16:25 UTC 2020


    Date: Saturday, July 4, 2020 @ 16:16:24
  Author: daurnimator
Revision: 657748

archrelease: copy trunk to community-x86_64

Added:
  chezmoi/repos/community-x86_64/PKGBUILD
    (from rev 657747, chezmoi/trunk/PKGBUILD)
Deleted:
  chezmoi/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   94 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 49 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-04 16:15:56 UTC (rev 657747)
+++ PKGBUILD	2020-07-04 16:16:24 UTC (rev 657748)
@@ -1,45 +0,0 @@
-# Maintainer: Daurnimator <daurnimator at archlinux.org>
-# Contributor: Tom Payne <twpayne at gmail.com>
-# Contributor:  <godeater at gmail.com>
-
-pkgname=chezmoi
-pkgver=1.8.3
-pkgrel=1
-pkgdesc="Manage your dotfiles across multiple machines"
-arch=('x86_64')
-url='https://www.chezmoi.io/'
-license=('MIT')
-makedepends=('go' 'git')
-depends=('glibc')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/twpayne/chezmoi/archive/v${pkgver}.tar.gz")
-sha512sums=('f4cbc733347d66eb909158c6879c8d4f2851c3458539ed0e6a99ffea863832f7ed35a6031f22ac6838d352ce96316432fd7f6f749d13d8df8735bf037c11a165')
-
-build() {
-  cd "$pkgname-$pkgver"
-
-  go build \
-    -trimpath \
-    -buildmode=pie \
-    -mod=readonly \
-    -modcacherw \
-    -tags noupgrade,noembeddocs \
-    -ldflags "-X github.com/twpayne/chezmoi/cmd.DocsDir=/usr/share/doc/$pkgname \
-              -X github.com/twpayne/chezmoi/cmd.VersionStr=$pkgver \
-              -extldflags ${LDFLAGS}" \
-    .
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-
-  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"
-
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: chezmoi/repos/community-x86_64/PKGBUILD (from rev 657747, chezmoi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-04 16:16:24 UTC (rev 657748)
@@ -0,0 +1,49 @@
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
+# Contributor: Tom Payne <twpayne at gmail.com>
+# Contributor:  <godeater at gmail.com>
+
+pkgname=chezmoi
+pkgver=1.8.3
+pkgrel=2
+pkgdesc="Manage your dotfiles across multiple machines"
+arch=('x86_64')
+url='https://www.chezmoi.io/'
+license=('MIT')
+makedepends=('go' 'git')
+depends=('glibc')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/twpayne/chezmoi/archive/v${pkgver}.tar.gz")
+sha512sums=('f4cbc733347d66eb909158c6879c8d4f2851c3458539ed0e6a99ffea863832f7ed35a6031f22ac6838d352ce96316432fd7f6f749d13d8df8735bf037c11a165')
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  go build \
+    -trimpath \
+    -buildmode=pie \
+    -mod=readonly \
+    -modcacherw \
+    -tags noupgrade,noembeddocs \
+    -ldflags "-X github.com/twpayne/chezmoi/cmd.DocsDir=/usr/share/doc/$pkgname \
+              -X main.version=$pkgver \
+              -extldflags ${LDFLAGS}" \
+    .
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  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"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}


More information about the arch-commits mailing list