1
0
mirror of https://github.com/Jguer/yay synced 2024-07-08 20:36:24 +00:00

fix(build): fix issue where shell conditional output is passed to go build (#1887)

fix issue where shell conditional output is passed to go build

(cherry picked from commit 6744fa721f)
This commit is contained in:
Jo 2023-01-05 15:50:53 +00:00 committed by GitHub
parent b8debd1ae7
commit c40e949752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ MOFILES := $(POFILES:.po=.mo)
FLAGS ?= -trimpath -mod=readonly -modcacherw
EXTRA_FLAGS ?= -buildmode=pie
LDFLAGS := -X "main.yayVersion=${VERSION}" -X "main.localePath=${SYSTEMLOCALEPATH}" -linkmode=external
FLAGS += $(shell pacman -T 'pacman-git' && echo "-tags next")
FLAGS += $(shell pacman -T 'pacman-git' >/dev/null 2>&1 && echo "-tags next")
RELEASE_DIR := ${PKGNAME}_${VERSION}_${ARCH}
PACKAGE := $(RELEASE_DIR).tar.gz