[arch-commits] Commit in chezmoi/trunk (PKGBUILD)
Daurnimator
daurnimator at archlinux.org
Sat Jul 4 16:15:56 UTC 2020
Date: Saturday, July 4, 2020 @ 16:15:56
Author: daurnimator
Revision: 657747
upgpkg: chezmoi 1.8.3-2: version variable moved location; update to new go packaging guidelines
Modified:
chezmoi/trunk/PKGBUILD
----------+
PKGBUILD | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-04 16:03:06 UTC (rev 657746)
+++ PKGBUILD 2020-07-04 16:15:56 UTC (rev 657747)
@@ -4,7 +4,7 @@
pkgname=chezmoi
pkgver=1.8.3
-pkgrel=1
+pkgrel=2
pkgdesc="Manage your dotfiles across multiple machines"
arch=('x86_64')
url='https://www.chezmoi.io/'
@@ -17,6 +17,10 @@
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 \
@@ -24,7 +28,7 @@
-modcacherw \
-tags noupgrade,noembeddocs \
-ldflags "-X github.com/twpayne/chezmoi/cmd.DocsDir=/usr/share/doc/$pkgname \
- -X github.com/twpayne/chezmoi/cmd.VersionStr=$pkgver \
+ -X main.version=$pkgver \
-extldflags ${LDFLAGS}" \
.
}
More information about the arch-commits
mailing list