From 7b851a3adb79143f9de52ad4bac909e23d04f431 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Mon, 16 Jan 2023 19:46:07 +1300 Subject: upgpkg: xq 1.1.2-1; enable debug package --- PKGBUILD | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD index 8c659af..69eb92e 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: George Rawlinson pkgname=xq -pkgver=1.1.1 +pkgver=1.1.2 pkgrel=1 pkgdesc='Command-line XML and HTML beautifier and content extractor' arch=('x86_64') @@ -11,7 +11,7 @@ depends=('glibc') makedepends=('git' 'go') conflicts=('yq') options=('!lto') -_commit='f0c2fb2fb0dcc90e9422a219ffdf437113777388' +_commit='7c585a2e6ccd7e6e3adc63e4524023389135c938' source=( "$pkgname::git+$url#commit=$_commit" 'manpage-template.patch' @@ -45,16 +45,18 @@ build() { 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.commit=$_commit \ -X main.date=$_commit_date \ -X main.version=$pkgver" \ -- cgit v1.2.3-70-g09d2