app-mobilephone/scrcpy: add 4.0

Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
Bernard Cafarelli
2026-05-21 18:36:10 +02:00
parent 025b5ff573
commit 87b95e5ec3
2 changed files with 57 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
DIST scrcpy-3.3.4.tar.gz 465799 BLAKE2B e50a6e6ceb55ba748243d266223c7cffb4d7ebc1e0a6bdc189db00a8ab76e84cfc3649bddf487ccf3188baf38882f9df956d734cc35df791900e00b27b9d2e7b SHA512 f3dae4571758e63277517f65d8703ee8a593b2b0a6599a4384f5dcc8070708c19df1931e233111ecc4e7322111f15ca167543491a8ac912cf242f72d43624617
DIST scrcpy-4.0.tar.gz 489017 BLAKE2B a2ec4ff60d7357104405bc1c129727528074a2a8c48b4901900f204f93f297ae6587d182e368ee971651f0b23374431dc0e3b1bd4e149be75938f42b630982a2 SHA512 ca905bc7f0991925b21980a5619752fcb7834846cbb9a665da70505ca94021992a11b5653073ed637a6839503c2dc977acf557c9ff8192571aa71480e6ec9b71
DIST scrcpy-server-v3.3.4 90980 BLAKE2B 3a0f1ef92e222a3f691d4e110e5477af9b512f1e51668356250b047d3ea14d7c1ee21f6c8075226ea3ec74f439923b67214108f01244abd87b8d858740383d0f SHA512 697e54771720a751304202520660524920ad9c95dcb1f3ce15f680f74aa0067dab3677c500255100eba7bb3184db6799e41025c25d51eb9b4e66203f68bffb0d
DIST scrcpy-server-v4.0 732226 BLAKE2B 3896c93fe893985485500937e05127016987954ead6e0d5fe057dd9cb5a20f20eeb81af29f074a07aaeaaae6235eafd8e568eef5a6a91c94ab92bf3e12723d88 SHA512 7ebaf385aaafc0251ab506b4850a9b508c1a3da3b7b49f59c1bd54a72f1e7080a01f1270cc7fa8a6060f4b15621e5567ebb228128ad35ec44a7286622bbddb46

View File

@@ -0,0 +1,55 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson xdg
DESCRIPTION="Display and control your Android device"
HOMEPAGE="https://github.com/Genymobile/scrcpy"
# Source code and server part on Android device
SRC_URI="
https://github.com/Genymobile/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/Genymobile/${PN}/releases/download/v${PV}/${PN}-server-v${PV}
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"
IUSE="X wayland"
DEPEND="
media-libs/libsdl3[X?,wayland?]
media-video/ffmpeg:=
virtual/libusb:1
"
# Manual install for ppc64 until bug #723528 is fixed
RDEPEND="
${DEPEND}
!ppc64? ( dev-util/android-tools )
"
DOCS=( {FAQ,README}.md doc/. )
src_prepare() {
default
rm doc/{build,develop,macos,windows}.md || die
}
src_configure() {
local emesonargs=(
-Dprebuilt_server="${DISTDIR}/${PN}-server-v${PV}"
)
meson_src_configure
}
pkg_postinst() {
xdg_pkg_postinst
if has_version media-video/pipewire; then
ewarn "On pipewire systems scrcpy might not start due to a problem with libsdl2."
ewarn "If that is the case for you start the program as follows:"
ewarn " $ SDL_AUDIODRIVER=pipewire scrcpy [...]"
ewarn "For more information see https://github.com/Genymobile/scrcpy/issues/3864"
fi
}