FROM fedora:34

RUN dnf -y update \
 && dnf -y install \
    "dnf-command(builddep)" \
    git \
    libabigail \
    libjpeg-turbo-devel \
    sassc \
    vala \
 && sudo dnf -y build-dep gtk4 \
 && dnf clean all

RUN git clone https://gitlab.gnome.org/GNOME/gtk.git --depth=1 \
 && cd gtk \
 && meson build --prefix=/usr \
 && cd build \
 && ninja \
 && sudo ninja install \
 && cd ../.. \
 && rm -rf gtk
