diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-07-02 08:01:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-07-02 08:01:06 +0100 |
commit | 5c5e9714c851027611cb726a76ebb8be6d48cbdc (patch) | |
tree | 3128d1c5b5258c431e64b60e62ba67f9c701c89d /app-mobilephone/scrcpy/scrcpy-2.5.ebuild | |
parent | d1c14e94a73fba924761cdad7298f3e48c6bc160 (diff) |
gentoo auto-resync : 02:07:2024 - 08:01:06
Diffstat (limited to 'app-mobilephone/scrcpy/scrcpy-2.5.ebuild')
-rw-r--r-- | app-mobilephone/scrcpy/scrcpy-2.5.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/app-mobilephone/scrcpy/scrcpy-2.5.ebuild b/app-mobilephone/scrcpy/scrcpy-2.5.ebuild new file mode 100644 index 000000000000..ef5acfc0b38d --- /dev/null +++ b/app-mobilephone/scrcpy/scrcpy-2.5.ebuild @@ -0,0 +1,45 @@ +# 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 ) +" + +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." +} |