all operations in pkg_* should be on $ROOT, not / pkg_postinst() { ... if [[ -e /usr/$(get_libdir)/libxcb-xlib.so.0.0.0 ]]; then ...
Fixed in 1.4-r1. Thanks