There is an existing Ubuntu package for opengtl you might use as a starting point. You can dget the most recent version from: https://launchpad.net/ubuntu/+archive/primary/+files/opengtl_0.9.15-0ubuntu3.dsc