Show that the y-momentum reduces to the standard hydrostatic condition. Now integrate the y-momentum equation along the y-direction and apply the condition that the pressure along the sloping surface of water is a cons.