How to use "options" to add compile flags in a PKGBUILD?

Hmm, I had a tickle in the back of my mind that it might not work, but I ignored it. :man_facepalming:

Try adding this as the first line in the build() function instead:

export CFLAGS="${CFLAGS} -Wno-error=format-security"