1
0

app-mobilephone/scrcpy: new package, add 2.3.1

This commit is contained in:
Puqns67 2024-01-29 14:57:54 +08:00
parent 302eef7450
commit 2c128130cc
Signed by: Puqns67
GPG Key ID: 9669DF042554F536
3 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DIST scrcpy-2.3.1.tar.gz 401278 BLAKE2B 0cb231aef87965f346613987c45a624ad853ad870000d78ccaeda6fabaa39cfbd1fed5da50f028aece96c7c12395edc521bf629d935fb8e45a806e487681e6b8 SHA512 4ef9398f23740edf8d09bb18ecc9f6e120b7d3991b8d359836f5e3f4a568484307a1f020da2edeb3193a4f4d6820b5948d6b80600e7ceeed869a2ed8136bfefd
DIST scrcpy-server-v2.3.1 66007 BLAKE2B f3b006bdec8fb3e34474a694fcd5d54fa1caac6b1757cd4ac74d84ce42c9e163e68dbb33985c1474fdeda4c124c317494837c24bc4c18e42cc7e285666d76374 SHA512 9360ad9321554bc9ab38833720e20fada1e0e3a9d1302fced2bbc035b87ea2bbc6802fa8d52fe73ae8d9272ac0f1759c6042badd0043392b90cb68c5c89fc57c

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>me@puqns67.icu</email>
<name>Puqns67</name>
</maintainer>
<upstream>
<remote-id type="github">Genymobile/scrcpy</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,39 @@
# 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[video,audio]
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."
}