[packaging] import mer packaging adapted to newer version and subtree building