Re: Revising Go packaging guidelines (2024)

2024-03-21 Thread Morten Linderud
On Tue, Mar 19, 2024 at 12:17:11AM +0100, kpcyrd wrote: > hello, Yo, Thanks for writing this. > ## Suggestion > > I'd like to propose changing this to something like: > > > prepare() { > > cd ${pkgname}-${pkgver} > > go mod download > > } > > > > build() { > > cd ${pkgname}-${pkgver} > >

Revising Go packaging guidelines (2024)

2024-03-18 Thread kpcyrd
hello, the Arch Linux Go packaging guidelines[0] currently suggest this for building software written in Go: > export CGO_CPPFLAGS="${CPPFLAGS}" > export CGO_CFLAGS="${CFLAGS}" > export CGO_CXXFLAGS="${CXXFLAGS}" > export CGO_LDFLAGS="${LDFLAGS}" > export GOFLAGS="-buildmode=pie -trimpath -ldf