From b397551a0d9f07f4a06e83207e7069d949c5bd85 Mon Sep 17 00:00:00 2001 From: metcya Date: Sun, 4 Jan 2026 21:39:40 -0600 Subject: [PATCH] add: sunshine --- anda/apps/sunshine/anda.hcl | 5 ++ anda/apps/sunshine/fix-test-cxxflags.patch | 15 ++++++ anda/apps/sunshine/sunshine.spec | 62 ++++++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 anda/apps/sunshine/anda.hcl create mode 100644 anda/apps/sunshine/fix-test-cxxflags.patch create mode 100644 anda/apps/sunshine/sunshine.spec diff --git a/anda/apps/sunshine/anda.hcl b/anda/apps/sunshine/anda.hcl new file mode 100644 index 0000000000..d217ce1d09 --- /dev/null +++ b/anda/apps/sunshine/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "sunshine.spec" + } +} diff --git a/anda/apps/sunshine/fix-test-cxxflags.patch b/anda/apps/sunshine/fix-test-cxxflags.patch new file mode 100644 index 0000000000..ce12cf1c6e --- /dev/null +++ b/anda/apps/sunshine/fix-test-cxxflags.patch @@ -0,0 +1,15 @@ +diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt +index 9a570fd3..676334d1 100644 +--- a/tests/CMakeLists.txt ++++ b/tests/CMakeLists.txt +@@ -16,8 +16,8 @@ include_directories("${GTEST_SOURCE_DIR}/googletest/include" "${GTEST_SOURCE_DIR + + # coverage + # https://gcovr.com/en/stable/guide/compiling.html#compiler-options +-set(CMAKE_CXX_FLAGS "-fprofile-arcs -ftest-coverage -ggdb -O0") +-set(CMAKE_C_FLAGS "-fprofile-arcs -ftest-coverage -ggdb -O0") ++set(CMAKE_CXX_FLAGS "-fprofile-arcs -ftest-coverage -ggdb -O0 -fPIE") ++set(CMAKE_C_FLAGS "-fprofile-arcs -ftest-coverage -ggdb -O0 -fPIE") + + # Find the correct libgcov library path matching the gcc compiler version + # This ensures the test executable links against the same libgcov version used during compilation diff --git a/anda/apps/sunshine/sunshine.spec b/anda/apps/sunshine/sunshine.spec new file mode 100644 index 0000000000..169919de27 --- /dev/null +++ b/anda/apps/sunshine/sunshine.spec @@ -0,0 +1,62 @@ +Name: sunshine +Version: 2025.924.154138 +Release: 1%{?dist} +License: GPL-3.0-Only +URL: http://app.lizardbyte.dev/Sunshine/ +Patch0: fix-test-cxxflags.patch +Summary: Self-hosted game stream host for Moonlight +Packager: metcya + +BuildRequires: anda-srpm-macros +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: openssl-devel +BuildRequires: pkgconfig(libcap) +BuildRequires: pkgconfig(libdrm) +BuildRequires: pkgconfig(libva) +BuildRequires: pkgconfig(libva-drm) +BuildRequires: pkgconfig(systemd) +BuildRequires: pkgconfig(udev) +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-server) +BuildRequires: pkgconfig(wayland-egl) +BuildRequires: pkgconfig(wayland-cursor) +BuildRequires: pkgconfig(nlohmann_json) +BuildRequires: pkgconfig(pkg-config) +BuildRequires: pkgconfig(libcurl) +BuildRequires: pkgconfig(miniupnpc) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(ayatana-appindicator3-0.1) +BuildRequires: pkgconfig(appindicator3-0.1) +BuildRequires: pkgconfig(libnotify) +BuildRequires: pkgconfig(opus) +BuildRequires: pkgconfig(gbm) +BuildRequires: pkgconfig(libpulse) +BuildRequires: pkgconfig(numa) +BuildRequires: doxygen +BuildRequires: nodejs-npm + +%description +Sunshine is a self-hosted game stream host for Moonlight. Offering low-latency, +cloud gaming server capabilities with support for AMD, Intel, and Nvidia GPUs +for hardware encoding. Software encoding is also available. You can connect to +Sunshine from any Moonlight client on a variety of devices. A web UI is +provided to allow configuration, and client pairing, from your favorite web +browser. Pair from the local server or any mobile device. + +%prep +%git_clone https://github.com/LizardByte/Sunshine.git + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%files + +%changelog +* Sun Jan 04 2026 metcya - {version} +- Initial package +