Add .BUILDINFO format 2 support
To catch up with current .BUILDINFO we need to implement format 2, the way it is implemented in https://gitlab.archlinux.org/pacman/pacman/-/blob/2c45e854ab405101fc13f6bd553a0ce099ecab6f/scripts/makepkg.sh.in#L519-550