1
0

Added a set of export CGO_*FLAGS statements recommended in https://wiki.archlinux.org/title/Go_package_guidelines

This commit is contained in:
Alexander Andreev 2023-08-05 06:02:54 +04:00
parent 82915fb300
commit d251d174e3
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -15,6 +15,10 @@ md5sums=('SKIP')
build() {
cd "$srcdir/$pkgname"
export GOPATH="$srcdir"/gopath
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
make VERSION=$pkgver DESTDIR="$pkgdir/"
}