diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-15 00:19:47 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-15 00:19:47 +0000 |
commit | 1f048d9b860b8c7b69ac8dd085edc9ee3191b2d5 (patch) | |
tree | affee530d130802d01350609c1e0705a3902e46d /app-mobilephone/scrcpy/scrcpy-2.0.ebuild | |
parent | 9ecdcfa46d8257a208dac1edc65aea2ccf11a799 (diff) |
gentoo auto-resync : 15:03:2023 - 00:19:47
Diffstat (limited to 'app-mobilephone/scrcpy/scrcpy-2.0.ebuild')
-rw-r--r-- | app-mobilephone/scrcpy/scrcpy-2.0.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/app-mobilephone/scrcpy/scrcpy-2.0.ebuild b/app-mobilephone/scrcpy/scrcpy-2.0.ebuild new file mode 100644 index 000000000000..819f99b5380d --- /dev/null +++ b/app-mobilephone/scrcpy/scrcpy-2.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2023 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="lto" + +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 )" +BDEPEND="" + +PATCHES=( "${FILESDIR}"/${P}-desktop.patch ) + +src_configure() { + local emesonargs=( + $(meson_use lto b_lto) + -Dprebuilt_server="${DISTDIR}/${PN}-server-v${PV}" + ) + meson_src_configure +} + +pkg_postinst() { + xdg_pkg_postrm +} |