set -eux
BRANCH=gtk-4-6
git clone https://gitlab.gnome.org/GNOME/gtk.git --branch $BRANCH --depth=1
cd gtk
git apply ../ci/4580.patch
meson build -D prefix=/usr/local -Dbuild-tests=false
ninja -C build
ninja -C build install
cd ..