From 5c7e444e78c6a2d28eca153dc68a3ebd615139eb Mon Sep 17 00:00:00 2001 From: Bernard Cafarelli Date: Wed, 28 Feb 2024 19:30:34 +0100 Subject: app-mobilephone/scrcpy: fix bash-completion Closes: https://bugs.gentoo.org/925435 Signed-off-by: Bernard Cafarelli --- app-mobilephone/scrcpy/scrcpy-2.3.1-r2.ebuild | 47 +++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 app-mobilephone/scrcpy/scrcpy-2.3.1-r2.ebuild (limited to 'app-mobilephone/scrcpy/scrcpy-2.3.1-r2.ebuild') diff --git a/app-mobilephone/scrcpy/scrcpy-2.3.1-r2.ebuild b/app-mobilephone/scrcpy/scrcpy-2.3.1-r2.ebuild new file mode 100644 index 000000000000..6183caa2ec12 --- /dev/null +++ b/app-mobilephone/scrcpy/scrcpy-2.3.1-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 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 ) +" + +PATCHES=( "${FILESDIR}"/${P}-bash-completion.patch ) + +src_configure() { + local emesonargs=( + -Dprebuilt_server="${DISTDIR}/${PN}-server-v${PV}" + ) + meson_src_configure +} + +pkg_postinst() { + xdg_pkg_postrm + + einfo "If you use pipewire because of a problem with libsdl2 it is possible that" + einfo "scrcpy will not start, in which case start the program by exporting the" + einfo "environment variable SDL_AUDIODRIVER=pipewire." + einfo "For more information see https://github.com/Genymobile/scrcpy/issues/3864." +} -- cgit v1.2.3-65-gdbad