I could only make 2.5.1-1 build by changing in src/code/cde/programs/dtterm/Makefile:
tic dtterm.ti
to
sudo tic dtterm.ti
Then I rebuilt it with:
makepkg -RL
I asssume that the person doing the build checks is running make with sudo, so the permission error won't show up for them.
Pinned Comments