It should be noted that the makepkg.conf file distributed with pacman does not contain the same compression settings as the one used to build official packages.
pacman:
COMPRESSZST=(zstd -c -z -q -)
https://git.archlinux.org/svntogit/packages.git/tree/trunk/m...devtools:
COMPRESSZST=(zstd -c -T0 --ultra -20 -)
https://github.com/archlinux/devtools/blob/master/makepkg-x8...