diff options
author | Bao Trinh | 2023-04-12 08:33:44 -0500 |
---|---|---|
committer | Bao Trinh | 2023-04-12 08:33:44 -0500 |
commit | b1ccc0822278dfd8c407f45928edd0a87d6d263a (patch) | |
tree | c11ddaf06b3f6161d3e11b973a91de2055014437 | |
parent | 8c45c4168374be7f937411593e9396ab172e5f34 (diff) | |
download | aur-b1ccc0822278dfd8c407f45928edd0a87d6d263a.tar.gz |
enable debug packages
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -36,12 +36,16 @@ prepare() { build() { cd "${_pkgname}" + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export GOPATH="${srcdir}" go build -v \ - -trimpath \ -buildmode=pie \ -mod=readonly \ -modcacherw \ - -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \ + -ldflags "-linkmode=external -compressdwarf=false -extldflags ${LDFLAGS}" \ -o build \ . } @@ -53,8 +57,8 @@ package() { install -vDm755 -t "$pkgdir/usr/lib/nomad/plugins" "build/${_pkgname}" # documentation + rm "examples/plugins/.gitkeep" + rmdir "examples/plugins" install -vDm644 -t "$pkgdir/usr/share/doc/${_pkgname}" README.md cp -vr examples "$pkgdir/usr/share/doc/${_pkgname}" - # note: examples/plugins is an empty folder - rm -rf "$pkgdir/usr/share/doc/${_pkgname}/examples/plugins" } |