It looks like the xf86-input-keyboard-1.2.0 snapshot was taken before the git repository was updated to include the xf86OSKbd.h header necessary to build this package. I have created upstream BUGID 8920 (https://bugs.freedesktop.org/show_bug.cgi?id=8920) about this issue.
See Bug 154009