Adapt package building for trusty