The checkinstall
documentation suggests using --fstrans
. So use this flag.
Update: I've downloaded your repo and run your code in an lxc container. Just adding --fstrans
definitely allows me to create a complete deb by running your command.
fakeroot
fakes some file operations but it does not allow the command it launches to install things where permissions are needed. That's why --fstrans
is needed.
ETA: The command mkdir -p "/usr/local/share/doc/tcc"
may fail. That's because the directory /usr/local/share/doc
does not already exist when checkinstall
is started. Yes, -p
means create all the parents so it should work but for some reason --fstrans
is unable to handle it. The solution is to precreate /usr/local/share/doc/
before running checkinstall
:
sudo mkdir /usr/local/share/doc
This is something I would do manually before trying to build. Just like I had to manually install packages with apt-get
so that the build would work. (Adding a check in the script for the existence of this directory would be helpful though for other folks who may run your script.)