summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-mobilephone/scrcpy/Manifest2
-rw-r--r--app-mobilephone/scrcpy/scrcpy-1.20.ebuild40
2 files changed, 42 insertions, 0 deletions
diff --git a/app-mobilephone/scrcpy/Manifest b/app-mobilephone/scrcpy/Manifest
index b2fe734b6620..53dca35fcc7d 100644
--- a/app-mobilephone/scrcpy/Manifest
+++ b/app-mobilephone/scrcpy/Manifest
@@ -1,4 +1,6 @@
DIST scrcpy-1.18.tar.gz 299497 BLAKE2B aaecb14ea5accf12b23e3b4d07069640e3778d6050dd28c7962ca458645f5e8215b7b7376b809086a3edf98fca1375d935eae429219c1fa5df91088360e46347 SHA512 9cd3841c65cd1f20f277e336b69eec475ea75f403b6761b91639bf6fe876c29d763f056ee2b226f6eabe312b3bdabcad9e72c0384a11fa9f5091ff9587292a6f
DIST scrcpy-1.19.tar.gz 314821 BLAKE2B 526d494efbc90ee23a1adc62e8658e0b7c0d10dc51f7a2ffdb85246afb7b8bae3dce9821cc969f57a52706bfa1829eba6e9505739a3f3c89f26226571085edae SHA512 be6b5a662aa7f0e5f75d9e66298ac0905e296d84cfbf8ff7e34ed20fdbbe14ebd7c759bc5a7bcde1e0a86c990d0f2c2fc5b0155d6dd011371e5ca48bf35d4a03
+DIST scrcpy-1.20.tar.gz 343592 BLAKE2B a91a6e360ed708ef9a3da626f6d373739f69115cfc07f37043a8586b92518f1896a49c639403f5e66062ed2e6d21c79fe4b7865784ed4ee1c86508e743b0a27c SHA512 55950e596840676b86239e604784a4eaf759ec2942120e2b8213c781149c049e6cd9bf40392f2dc23679a9fae74d47e2ebae58491b55b6ac6f9b23f83de64fc9
DIST scrcpy-server-v1.18 37330 BLAKE2B 02c5e58d72825abbc7d5a6e0f0e87f7effb016cc8baf77f975d6519200aee00401a67ea0e284e4f2188623dfd1c0800cc0dbfad25df0b51b3bc9aa5bacc3a7f2 SHA512 fffd06bbd1cae78af2112f0bd59c8da1c0f838206e3141d255a395ee633f52499eb85b5398a8b4d121241dd3e46088c790476061c3da2a12a319791096045454
DIST scrcpy-server-v1.19 37330 BLAKE2B 63296a4cab39b55106d0ae9f1df1b7cfa1993f2fdcf937d0fb0fc6b6afd181a1a068f53b6e75b8e80f3e05e7125fb76d57cacd366cfe76113bbb10527dc8a82b SHA512 8befe774fc7caa02c408af57f30b7eaf0009f542d8998363c8fb55c229ff53b2049ed7259404f6262cac4afd5a7077006b1d136fa1b319c8195d0c3ee9ba2dbe
+DIST scrcpy-server-v1.20 37139 BLAKE2B d8779c916545c336bc147b5d5f9fd958275eb178e50f00fd68c6504d3cdfd5e7e1fabd8c0f1a27986b786540e396f465bb38602343bc4a0bb1d254181635f799 SHA512 39c8cd7a2879272902c97dc5ec7fba57f8b4b021f44d5f12ab9ee3153056484b0ebe056b7ce55dd9eb7b14a14f2c71604b7eeb6e895ee83d295578b9e096f69f
diff --git a/app-mobilephone/scrcpy/scrcpy-1.20.ebuild b/app-mobilephone/scrcpy/scrcpy-1.20.ebuild
new file mode 100644
index 000000000000..65cd0d8c3474
--- /dev/null
+++ b/app-mobilephone/scrcpy/scrcpy-1.20.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit meson
+
+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"
+
+RDEPEND="media-libs/libsdl2[X]
+ media-video/ffmpeg"
+DEPEND="${RDEPEND}"
+BDEPEND=""
+
+src_configure() {
+ local emesonargs=(
+ -Db_lto=true
+ -Dprebuilt_server="${DISTDIR}/${PN}-server-v${PV}"
+ )
+ meson_src_configure
+}
+
+pkg_postinst() {
+ elog "if scrcpy return error like"
+ elog ""
+ elog "[server] ERROR: Exception on thread Thread[main,5,main]"
+ elog "java.lang.IllegalArgumentException"
+ elog "at android.media.MediaCodec.native_configure(Native Method)"
+ elog ""
+ elog "Just try with a lower definition:"
+ elog "scrcpy -m 1920 or scrcpy -m 1024"
+}