From a1d0e9ea748f537464251717d0757b764367816e Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 10 Aug 2022 19:51:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D1=85=D0=BE=D0=B4?= =?UTF-8?q?=D0=B8=D0=BC=20=D0=BD=D0=B0=20qt6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- duckstation-qt6.spec | 50 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 duckstation-qt6.spec diff --git a/duckstation-qt6.spec b/duckstation-qt6.spec new file mode 100644 index 0000000..1ade2d9 --- /dev/null +++ b/duckstation-qt6.spec @@ -0,0 +1,50 @@ + + +%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 + +