commit: 75988416f078333e1bae2b4c997594ea1f4e1e5d Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> AuthorDate: Tue Sep 23 14:26:39 2025 +0000 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> CommitDate: Tue Sep 23 14:40:34 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75988416
app-mobilephone/scrcpy: add 3.3.2 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> app-mobilephone/scrcpy/Manifest | 2 ++ app-mobilephone/scrcpy/scrcpy-3.3.2.ebuild | 55 ++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/app-mobilephone/scrcpy/Manifest b/app-mobilephone/scrcpy/Manifest index d1a60cb99f65..020777211d64 100644 --- a/app-mobilephone/scrcpy/Manifest +++ b/app-mobilephone/scrcpy/Manifest @@ -1,2 +1,4 @@ DIST scrcpy-3.3.1.tar.gz 465464 BLAKE2B 1966eb4f0b5740846d09a49721cc77f02db889e00c8adb8d4c880d8b084e3be1d560f61f21c9973de53a740903526bef4fbd26651e23599379f1c5cffd47ff08 SHA512 9470cc32e559252c1540d1b8b49931d7a2f35b04de2e70c2e362c972f4e384d837df28d4287555ad7705adcb5723ede8929f1d04e23ae4d2a8230c5ef83d6328 +DIST scrcpy-3.3.2.tar.gz 465392 BLAKE2B 53bf21fef4388bd32f2957fd6a584d6e9a228b1ffae221e65e60ccb076d8837bb56621b91e54f24e6d9469d578f2545d6a0b2327809b4a842ad98790fead7f8b SHA512 798d7474b4a46c3d178ecd25709c52a31018722ce3d3fc3de418e8845bf43ca71ad1b080fcc3e35109da9f221d0e27696e59c738fcb2cff794784a5a2150868b DIST scrcpy-server-v3.3.1 90788 BLAKE2B c000aaa1d3f54494bb98c4a90a2086c0af8370381f29b4e6f7efc01f27afccba5bc0116b2394fa53fe1678bbf393accd79f997391c28993f8a54b30374bb5964 SHA512 fc3a0b4da7d609ce4a5b49a343dc27d713e7ad084fcccc540b017fa768201de8b26b9ee4146f479c4da46992b5d9a389cb201a09218468d08ec8e257dd4831ef +DIST scrcpy-server-v3.3.2 90808 BLAKE2B e0a5880fa99fb5af2a48833a93ed20f108442b49937a71ec21095afab90ff12030fcdc24cca260c6c20da2a72c987e8984cf3fa1733a4ec8c3e0c5d8c76a2f51 SHA512 f77535dd88268300d2ec566719dbd0899b598416b63e4db808f29e20362b4ed3a3057ebeadcff94966ed7adf857d52cf4a1087fd1a03b99ae1876dc92e27a5ae diff --git a/app-mobilephone/scrcpy/scrcpy-3.3.2.ebuild b/app-mobilephone/scrcpy/scrcpy-3.3.2.ebuild new file mode 100644 index 000000000000..f1c3c1975503 --- /dev/null +++ b/app-mobilephone/scrcpy/scrcpy-3.3.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2025 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/libsdl2[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 +}
