%define component_name duckstation Name: duckstation Version: qt6 Release: alt1 License: GPLv3 Summary: DuckStation - PlayStation 1, aka. PSX Emulator Group: Games/Emulators Packager: Vadim Morozov #BuildArch: x86_64 Source0: https://github.com/stenzek/duckstation/archive/refs/heads/master.zip #Source0: https://github.com/stenzek/duckstation/archive/refs/heads/dev.zip BuildRequires: qt6-tools-devel qt6-tools libSDL2-devel libXrandr-devel libwayland-egl-devel libwayland-egl-devel wayland-devel xorg-xwayland-devel egl-wayland-devel extra-cmake-modules libcurl-devel libcurl-gnutls-compat ninja-build libgbm-devel libdrm-devel libevdev-devel ## optional deps libspeexdsp-devel doxygen Requires: libSDL2 qt6-base-common %description DuckStation is an simulator/emulator of the Sony PlayStation(TM) console, focusing on playability, speed, and long-term maintainability %prep %setup -qn duckstation-master %build mkdir build pushd build cmake -Bbuild-release -DCMAKE_BUILD_TYPE=Release -GNinja .. cmake --build build-release --parallel %install mkdir -p %{buildroot}/opt mkdir -p %{buildroot}/usr/share/applications mkdir -p %{buildroot}/usr/share/pixmaps cp -rv build/build-release/bin %{buildroot}/opt/duckstation cp extras/linux-desktop-files/duckstation-qt.desktop %{buildroot}/usr/share/applications cp extras/icons/icon-256px.png %{buildroot}/usr/share/pixmaps/duckstation.png %files /opt/* /usr/share/applications/* /usr/share/pixmaps/* %post ln -svt /usr/bin /opt/duckstation/duckstation-qt