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

Maxim Baz maximbaz at archlinux.org
Thu Oct 1 21:28:55 UTC 2020


    Date: Thursday, October 1, 2020 @ 21:28:54
  Author: maximbaz
Revision: 714360

curlie: pass version info

Modified:
  curlie/trunk/PKGBUILD

----------+
 PKGBUILD |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-01 21:28:53 UTC (rev 714359)
+++ PKGBUILD	2020-10-01 21:28:54 UTC (rev 714360)
@@ -3,7 +3,7 @@
 
 pkgname=curlie
 pkgver=1.5.4
-pkgrel=2
+pkgrel=3
 pkgdesc='The power of curl, the ease of use of httpie.'
 arch=('x86_64')
 url="https://curlie.io"
@@ -15,12 +15,14 @@
 
 build() {
     cd "${pkgname}-${pkgver}"
+
     export CGO_CPPFLAGS="${CPPFLAGS}"
     export CGO_CFLAGS="${CFLAGS}"
     export CGO_CXXFLAGS="${CXXFLAGS}"
     export CGO_LDFLAGS="${LDFLAGS}"
-    export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
-    go build
+    export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+
+    go build -ldflags "-X main.version=$pkgver -X main.date=$(date -u -I) -linkmode=external"
 }
 
 package() {


More information about the arch-commits mailing list