We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55507d1 commit fd9f6eaCopy full SHA for fd9f6ea
.goreleaser.yml
@@ -125,23 +125,16 @@ aur_sources:
125
- go
126
- git
127
prepare: |-
128
- cd "${pkgname}_${pkgver}"
129
go mod download
130
build: |-
131
- cd "${pkgname}-${pkgver#v}"
132
-
133
export CGO_CPPFLAGS="${CPPFLAGS}"
134
export CGO_CFLAGS="${CFLAGS}"
135
export CGO_CXXFLAGS="${CXXFLAGS}"
136
export CGO_LDFLAGS="${LDFLAGS}"
137
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
138
go build -ldflags="-w -s -buildid='' -linkmode=external -X main.version=v${pkgver}" .
139
140
- ls -alF
141
chmod +x "./${pkgname}"
142
package: |-
143
144
145
146
# Bin
147
install -Dsm755 "./${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
0 commit comments