From 6d2efd14a7aa78a21be5024ea47466b0a60a5a9e Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 3 Jan 2026 18:45:46 -0800 Subject: [PATCH] add: gpu-screen-recorder (#8878) (#8900) --- anda/multimedia/gpu-screen-recorder/anda.hcl | 5 ++ .../gpu-screen-recorder.spec | 77 +++++++++++++++++++ .../gpu-screen-recorder/update.rhai | 1 + 3 files changed, 83 insertions(+) create mode 100644 anda/multimedia/gpu-screen-recorder/anda.hcl create mode 100644 anda/multimedia/gpu-screen-recorder/gpu-screen-recorder.spec create mode 100644 anda/multimedia/gpu-screen-recorder/update.rhai diff --git a/anda/multimedia/gpu-screen-recorder/anda.hcl b/anda/multimedia/gpu-screen-recorder/anda.hcl new file mode 100644 index 0000000000..637e4d9201 --- /dev/null +++ b/anda/multimedia/gpu-screen-recorder/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "gpu-screen-recorder.spec" + } +} \ No newline at end of file diff --git a/anda/multimedia/gpu-screen-recorder/gpu-screen-recorder.spec b/anda/multimedia/gpu-screen-recorder/gpu-screen-recorder.spec new file mode 100644 index 0000000000..d0fa44a9e8 --- /dev/null +++ b/anda/multimedia/gpu-screen-recorder/gpu-screen-recorder.spec @@ -0,0 +1,77 @@ +%global snapshot r1245.8e82100 + +Name: gpu-screen-recorder +Version: 5.11.2 +Release: 1%{dist} +Summary: A shadowplay-like screen recorder for Linux + +License: GPL-3.0-or-later + +URL: https://git.dec05eba.com/%{name}/about + +Source: https://dec05eba.com/snapshot/%{name}.git.%{snapshot}.tar.gz + +BuildRequires: gcc +BuildRequires: (gcc-g++ or gcc-c++) +BuildRequires: pkgconfig(libva) +BuildRequires: pkgconfig(libdrm) +BuildRequires: pkgconfig(libva-drm) +BuildRequires: vulkan-headers +BuildRequires: pkgconfig(libcap) +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-egl) +BuildRequires: pkgconfig(libpulse) +BuildRequires: (ffmpeg-free-devel or ffmpeg-devel or ffmpeg-7-mini-devel) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xdamage) +BuildRequires: pkgconfig(xcomposite) +BuildRequires: pkgconfig(xrandr) +BuildRequires: pkgconfig(xfixes) +BuildRequires: meson +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(libspa-0.2) +BuildRequires: pkgconfig(libglvnd) +Requires(post): libcap +BuildRequires: systemd-rpm-macros + +Packager: Willow Reed + +%description +Shadowplay-like screen recorder for Linux. Uses GPU acceleration to record in H.264, HEVC, AV1, VP8, or VP9. + +%prep +%autosetup -c + +%build +%meson -Dcapabilities=false +%meson_build + +%install +%meson_install + +%check +%meson_test + +%post +%systemd_user_post gpu-screen-recorder.service + +%preun +%systemd_user_preun gpu-screen-recorder.service + +%postun +%systemd_user_postun gpu-screen-recorder.service + +%files +%license LICENSE +%doc README.md +%{_bindir}/gpu-screen-recorder +%caps(cap_sys_admin+ep) %{_bindir}/gsr-kms-server +%{_includedir}/gsr/plugin.h +%{_userunitdir}/%{name}.service +%{_modprobedir}/gsr-nvidia.conf +%{_mandir}/man1/gsr-kms-server.1* +%{_mandir}/man1/gpu-screen-recorder.1* + +%changelog +* Fri Jan 02 2026 Willow Reed +- Initial commit \ No newline at end of file diff --git a/anda/multimedia/gpu-screen-recorder/update.rhai b/anda/multimedia/gpu-screen-recorder/update.rhai new file mode 100644 index 0000000000..d0f6ae76b3 --- /dev/null +++ b/anda/multimedia/gpu-screen-recorder/update.rhai @@ -0,0 +1 @@ +rpm.version(find_all(`/gpu-screen-recorder/tag/\?h=([\d.]+)`, get(`https://git.dec05eba.com/gpu-screen-recorder/refs/`))[0][1]); \ No newline at end of file