From 75b794d3d5e2183b69b44ecd609991a9d4dc95b0 Mon Sep 17 00:00:00 2001 From: tlze Date: Thu, 2 Nov 2023 17:20:08 +0800 Subject: [PATCH] app-mobilephone/scrcpy: add 2.2 --- app-mobilephone/scrcpy/Manifest | 1 + app-mobilephone/scrcpy/scrcpy-2.2.ebuild | 48 ++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 app-mobilephone/scrcpy/scrcpy-2.2.ebuild diff --git a/app-mobilephone/scrcpy/Manifest b/app-mobilephone/scrcpy/Manifest index 98d802f60bd..b381f6ca9c5 100644 --- a/app-mobilephone/scrcpy/Manifest +++ b/app-mobilephone/scrcpy/Manifest @@ -1,2 +1,3 @@ DIST scrcpy-server-v1.25 42151 BLAKE2B 90789c8b259f9a63820652f8884b51abe1040201f37788542796fbff6445bc13259e2aaf635c99c6ccdb515d8fd4b0b3bcd54d8972d134086f05d149a5073d41 SHA512 2861f423b6c982354c5959570708b51832e18b9d376397f98a78c8d6137af22bb3f19cbce501d7f413276362e9ac9e0358b8984566ff04102a3720074ff1fea1 DIST scrcpy-server-v2.1.1 56995 BLAKE2B 6a089ca33025873f48d62389b17ba6fb6249c007ef7d7fd21883351e7724c3207dce1cea8b655cb949361d26210f5bb6115a2f5f9895c8a3b129652a77848c3d SHA512 f9b27068a92042e6d05ca4d56e6220174fbb008d21c2c423ad3adf91ac1ba0d30cf63a2d9072608adee56f5b49e5a55f9a193737ddf80fb222b447af196c4a90 +DIST scrcpy-server-v2.2 64363 BLAKE2B 65f53a9b931ab076f06de174c1212077d5961a28881237967894ca5f9f59006b4974c4fd6c1e878df9fa7804b848a92b03689f07e27fa32489e66dede5220363 SHA512 7020b3e1b78a9e5896355d22855cffd338d2a455367a82a1aad0659511de42bff8112756ed614b56f9945340aeb56f42f6e093263450c08c02dd8774348dd64a diff --git a/app-mobilephone/scrcpy/scrcpy-2.2.ebuild b/app-mobilephone/scrcpy/scrcpy-2.2.ebuild new file mode 100644 index 00000000000..4f7f2f95d4d --- /dev/null +++ b/app-mobilephone/scrcpy/scrcpy-2.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson git-r3 + +EGIT_REPO_URI="https://github.com/Genymobile/scrcpy.git" + +if [[ ${PV} = 9999* ]]; then + MY_SERVER_PV="1.3" +else + EGIT_COMMIT="v${PV}" + MY_SERVER_PV="${PV}" + KEYWORDS="~amd64" +fi + +MY_SERVER_PN="scrcpy-server" +MY_SERVER_P="${MY_SERVER_PN}-v${MY_SERVER_PV}" + +SRC_URI="https://github.com/Genymobile/${PN}/releases/download/v${MY_SERVER_PV}/${MY_SERVER_P}" + +DESCRIPTION="Display and control your Android device" +HOMEPAGE="https://blog.rom1v.com/2018/03/introducing-scrcpy/" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +RESTRICT="test" + +COMMON_DEPEND=" + virtual/libusb:1 + media-libs/libsdl2 + media-video/ffmpeg" +DEPEND="${COMMON_DEPEND}" +RDEPEND=" + ${COMMON_DEPEND} + dev-util/android-tools" +PDEPEND="" + +src_configure() { + local emesonargs=( + -Db_lto=true + -Dprebuilt_server="${DISTDIR}/${MY_SERVER_P}" + ) + meson_src_configure +}