[packaging] import mer packaging and adapt to subtree and optional X11