Comment by tobias2014
It seems like this was the solution for archlinux, pull directly from the github tag and run autogen: https://gitlab.archlinux.org/archlinux/packaging/packages/xz...
it's shocking how many packages on distros are just one random tarball from the internet with lipstick