Whenever I run makepkg on a PKGBUILD, it outputs something like this twice:
/usr/share/makepkg/util/pkgbuild.sh: line 30: declare: `package_xdg-sanity': not a valid identifier
does anyone have an idea of what's going on here?
The problem was `POSIXLY_CORRECT=1`, which disables dashes in environment variable names (https://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html).