#!/usr/bin/env bash set -euo pipefail dnf -y install \ cmake \ pkg-config \ curl \ git \ clang \ ninja-build \ ccache \ libX11-devel \ libXrandr-devel \ mesa-libGL-devel \ gtk3-devel \ openal-soft-devel \ alsa-lib-devel \ SDL3-devel \ pulseaudio-libs-devel \ libao-devel cd / mkdir out git clone --branch "${ARES_VERSION:-master}" https://github.com/ares-emulator/ares cd ares mkdir build && cd build cmake .. -G Ninja cmake --build . cmake --install . --prefix /out sed -i 's|Exec=.*|Exec=/usr/bin/ares|' /out/share/applications/ares.desktop sed -i 's|Icon=.*|Icon=/usr/share/ares/ares.png|' /out/share/applications/ares.desktop