Date: Sunday, January 15, 2023 @ 06:55:17
  Author: grawlinson
Revision: 1383511

upgpkg: gum 0.9.0-2; add debug support

Add debug support, according to Go package guidelines.

Modified:
  gum/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-15 06:55:09 UTC (rev 1383510)
+++ PKGBUILD    2023-01-15 06:55:17 UTC (rev 1383511)
@@ -2,7 +2,7 @@
 
 pkgname=gum
 pkgver=0.9.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A tool for glamorous shell scripts'
 arch=('x86_64')
 url='https://github.com/charmbracelet/gum'
@@ -37,16 +37,18 @@
   export CGO_CPPFLAGS="${CPPFLAGS}"
   export CGO_CFLAGS="${CFLAGS}"
   export CGO_CXXFLAGS="${CXXFLAGS}"
+  export GOPATH="${srcdir}"
 
   # commit date for binary & man page
   local _commit_date=$(git show --no-patch --format=%cd --date=format:%Y-%m-%d)
 
   go build -v \
-    -trimpath \
     -buildmode=pie \
     -mod=readonly \
     -modcacherw \
-    -ldflags "-linkmode external -extldflags ${LDFLAGS} \
+    -ldflags "-compressdwarf=false \
+    -linkmode external \
+    -extldflags ${LDFLAGS} \
     -X main.Version=$pkgver \
     -X main.CommitSHA=$_commit \
     -X main.CommitDate=$_commit_date" \

Reply via email to