diff --git a/repo/sing-box-git/PKGBUILD b/repo/sing-box-git/PKGBUILD index 9b24fcb..96c039f 100644 --- a/repo/sing-box-git/PKGBUILD +++ b/repo/sing-box-git/PKGBUILD @@ -44,11 +44,13 @@ _tags=with_gvisor,with_quic,with_wireguard,with_utls,with_reality_server,with_cl build() { cd "${srcdir}/${_pkgname}" + export COMMIT=$(git rev-parse --short HEAD) + export VERSION=$(go run ./cmd/internal/read_tag) + export CGO_CPPFLAGS="$CPPFLAGS" export CGO_CFLAGS="$CFLAGS" export CGO_CXXFLAGS="$CXXFLAGS" export CGO_LDFLAGS="$LDFLAGS" - export VERSION=$(go run ./cmd/internal/read_tag) go build \ -v \