We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf9e795 commit d87d989Copy full SHA for d87d989
.goreleaser.yml
@@ -235,22 +235,15 @@ aur_sources:
235
private_key: "{{ .Env.AUR_KEY }}"
236
git_url: "ssh://aur@aur.archlinux.org/nfpm.git"
237
build: |-
238
- cd "${pkgname}-${pkgver}"
239
-
240
export CGO_CPPFLAGS="${CPPFLAGS}"
241
export CGO_CFLAGS="${CFLAGS}"
242
export CGO_CXXFLAGS="${CXXFLAGS}"
243
export CGO_LDFLAGS="${LDFLAGS}"
244
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
245
go build -ldflags="-w -s -buildid='' -linkmode=external -X main.version=v${pkgver}" ./cmd/nfpm
246
247
- ls -alF
248
chmod +x "./${pkgname}"
249
package: |-
250
251
252
253
254
# Bin
255
install -Dsm755 "./${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
256
0 commit comments