commit: a75a07037d3886ef089a77053563f520e58e9782 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> AuthorDate: Fri Jun 20 22:28:04 2025 +0000 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> CommitDate: Fri Jun 20 22:28:16 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a75a0703
app-mobilephone/scrcpy: add 3.3.1 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> app-mobilephone/scrcpy/Manifest | 2 ++ app-mobilephone/scrcpy/scrcpy-3.3.1.ebuild | 54 ++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/app-mobilephone/scrcpy/Manifest b/app-mobilephone/scrcpy/Manifest index c1eddb26707c..e6927ccd7cba 100644 --- a/app-mobilephone/scrcpy/Manifest +++ b/app-mobilephone/scrcpy/Manifest @@ -1,2 +1,4 @@ DIST scrcpy-3.2.tar.gz 464967 BLAKE2B 6052c2dabc4544f51e52376aaffc32ef1be5d2269f73c4b1e2e0197558704413827faa96442be49bf8d143f56d073683d378ca1c33200c211371a6e4a49aa300 SHA512 f2c962193c290772017c7f83fb0872c7cc729a3179269e0ba2f716c7829e68e01609951e4cdf9dffa4877fbfe374ab452507871a677924f8def98bedbebc2b94 +DIST scrcpy-3.3.1.tar.gz 465464 BLAKE2B 1966eb4f0b5740846d09a49721cc77f02db889e00c8adb8d4c880d8b084e3be1d560f61f21c9973de53a740903526bef4fbd26651e23599379f1c5cffd47ff08 SHA512 9470cc32e559252c1540d1b8b49931d7a2f35b04de2e70c2e362c972f4e384d837df28d4287555ad7705adcb5723ede8929f1d04e23ae4d2a8230c5ef83d6328 DIST scrcpy-server-v3.2 90888 BLAKE2B bf65e771a63ef786543f421ad64fddd12cd3c5ab35c49595a0efb58960235fad0989e93c218526d067d49af4d4e1e8a52d68e7936ff854d4ab7239506cb0f958 SHA512 c2d172c9866924c472d07d51b91914f02e8391b5dbaae99725ed5e44d42f2bbf92deaae4bfe27765a90382991234e44a02c18bc035d69fe4aa6493d2142dfec3 +DIST scrcpy-server-v3.3.1 90788 BLAKE2B c000aaa1d3f54494bb98c4a90a2086c0af8370381f29b4e6f7efc01f27afccba5bc0116b2394fa53fe1678bbf393accd79f997391c28993f8a54b30374bb5964 SHA512 fc3a0b4da7d609ce4a5b49a343dc27d713e7ad084fcccc540b017fa768201de8b26b9ee4146f479c4da46992b5d9a389cb201a09218468d08ec8e257dd4831ef diff --git a/app-mobilephone/scrcpy/scrcpy-3.3.1.ebuild b/app-mobilephone/scrcpy/scrcpy-3.3.1.ebuild new file mode 100644 index 000000000000..89312daf8844 --- /dev/null +++ b/app-mobilephone/scrcpy/scrcpy-3.3.1.ebuild @@ -0,0 +1,54 @@ +# 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" + +DEPEND=" + media-libs/libsdl2[X] + 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_postrm + + 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 +}
