I'm currently trying to package this lib for the Arch User Repo. And I just noticed that you use your own build of tdlib which is not that nice because it's not possible to verify if it was build from the original source or not. Also it is redundant if multiple applications on the system use tdlib. So I'm trying to find out if I could get this lib to use the tdlib already provided by the system. Is this possible?
But that does not really help for packaging here, because for a system package the path should be set inside the lib.