From b25575f38e617b38dfffee1e6659cda0998cd89a Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 18 Sep 2025 20:55:39 -0700 Subject: [PATCH] add: scrcpy (#6423) (#6427) --- anda/apps/scrcpy/anda.hcl | 5 ++++ anda/apps/scrcpy/scrcpy.spec | 50 ++++++++++++++++++++++++++++++++++++ anda/apps/scrcpy/update.rhai | 1 + 3 files changed, 56 insertions(+) create mode 100644 anda/apps/scrcpy/anda.hcl create mode 100644 anda/apps/scrcpy/scrcpy.spec create mode 100644 anda/apps/scrcpy/update.rhai diff --git a/anda/apps/scrcpy/anda.hcl b/anda/apps/scrcpy/anda.hcl new file mode 100644 index 0000000000..91d14db1fb --- /dev/null +++ b/anda/apps/scrcpy/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "scrcpy.spec" + } +} diff --git a/anda/apps/scrcpy/scrcpy.spec b/anda/apps/scrcpy/scrcpy.spec new file mode 100644 index 0000000000..c69467d21d --- /dev/null +++ b/anda/apps/scrcpy/scrcpy.spec @@ -0,0 +1,50 @@ +Name: scrcpy +Version: 3.3.2 +Release: 1%?dist +Summary: Display and control your Android device +License: Apache-2.0 +URL: https://github.com/Genymobile/scrcpy +Source0: %url/archive/refs/tags/v%version.tar.gz +Packager: madonuko +BuildRequires: meson ninja-build cmake nasm gcc +BuildRequires: pkgconfig(sdl2) +BuildRequires: pkgconfig(libavcodec) +BuildRequires: pkgconfig(libavdevice) +BuildRequires: pkgconfig(libavformat) +BuildRequires: pkgconfig(libavutil) +BuildRequires: pkgconfig(libswresample) +BuildRequires: pkgconfig(libusb) +BuildRequires: pkgconfig(libv4l2) +BuildRequires: cmake(VulkanHeaders) +BuildRequires: vulkan-loader + +%description +This application mirrors Android devices (video and audio) connected via USB or TCP/IP and allows control using the computer's keyboard and mouse. It does not require root access or an app installed on the device. It works on Linux, Windows, and macOS. + +%pkg_completion -Bz + +%prep +%autosetup + +%build +export WORK_DIR=$PWD/work +export OUTPUT_DIR=$PWD/output +export VERSION=v%version + +%meson \ + -Dcompile_server=false \ + -Dportable=false \ + -Dstatic=false +%meson_build + +%install +%meson_install + +%files +%doc README.md +%license LICENSE +%_bindir/scrcpy +%_datadir/applications/scrcpy-console.desktop +%_datadir/applications/scrcpy.desktop +%_iconsdir/hicolor/*/apps/scrcpy.png +%_mandir/man1/scrcpy.1.* diff --git a/anda/apps/scrcpy/update.rhai b/anda/apps/scrcpy/update.rhai new file mode 100644 index 0000000000..008bd5ccd6 --- /dev/null +++ b/anda/apps/scrcpy/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("Genymobile/scrcpy"));