[packaging] import mer packaging adapted to optional X11 and subtree building. All patches applied to subtree