From patchwork Thu Oct 27 11:48:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?6Lev6L6J?= X-Patchwork-Id: 44155 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1748427BBEB; Thu, 27 Oct 2022 12:50:34 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DA15D27BBE9 for ; Thu, 27 Oct 2022 12:50:32 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oo1Ns-0007wZ-Jn; Thu, 27 Oct 2022 07:49:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oo1Ne-0006Cf-RH for guix-patches@gnu.org; Thu, 27 Oct 2022 07:49:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oo1Ne-0006jj-Gg for guix-patches@gnu.org; Thu, 27 Oct 2022 07:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oo1Ne-00007S-3r for guix-patches@gnu.org; Thu, 27 Oct 2022 07:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58816] [PATCH] gnu: Add new variable scrcpy Resent-From: =?utf-8?b?6Lev6L6J?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 27 Oct 2022 11:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58816 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58816@debbugs.gnu.org X-Debbugs-Original-To: guix-patches Received: via spool by submit@debbugs.gnu.org id=B.1666871315415 (code B ref -1); Thu, 27 Oct 2022 11:49:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Oct 2022 11:48:35 +0000 Received: from localhost ([127.0.0.1]:56322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oo1NC-00006a-Ud for submit@debbugs.gnu.org; Thu, 27 Oct 2022 07:48:35 -0400 Received: from lists.gnu.org ([209.51.188.17]:49288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oo1NA-00006S-Ej for submit@debbugs.gnu.org; Thu, 27 Oct 2022 07:48:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oo1N3-0000Tw-RN for guix-patches@gnu.org; Thu, 27 Oct 2022 07:48:26 -0400 Received: from mail-yw1-x1141.google.com ([2607:f8b0:4864:20::1141]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oo1Mw-0006WV-1K for guix-patches@gnu.org; Thu, 27 Oct 2022 07:48:25 -0400 Received: by mail-yw1-x1141.google.com with SMTP id 00721157ae682-36d2188004bso11302987b3.4 for ; Thu, 27 Oct 2022 04:48:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=M4LHs0ncF8HG/mIRgbjEbMbrQb1I4TqPCbUaRJbeRqA=; b=qBhimJlFIwbg3llinjwUup7BHfhVJHudFrCV/wE5vTvlRUVXXcJCuYQJA+8V+8I1Sr Uky4U+3M+fjSupvr2+T4Rx4B1S5UfHf94Wl4KsUtFP/9E9X7MPhp96sXNp2RhFI4Hq3o G+sxEjJEgHIRdOLzi63SH/QjMu8WzpZjd/Bmfh/0hCjX1Zvy6vMNNVxExGBsothk+LhY J/h0b7I+7fM7Lv5yqCSTgkXeaaK8K6T9SlvL17YggmAHnLa0F75NdCbFyETuHQkfccK6 OqZFO5BFTuE+VlgqCNDE2t5duo4FBA49JRurtdroUicg/dADol9P7WRG01QrS7PZJm9N GrEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=M4LHs0ncF8HG/mIRgbjEbMbrQb1I4TqPCbUaRJbeRqA=; b=x5luqAi70t/Tgt+e63naRknOGP0RjigwVTH9H9gEdhUvLFfK6od0MBKnn1ggtFFUb6 Gnpr4MgydoawqsJ42ycqo2xVoo6u8MYHnCh8jM9XJoIYkOcNDhlEIpEkYpzIHMc9vkWQ 27SZLB1lA/UE1BFpPDElQYFxSPgSzIprx+CuG83rtaCXsK02x6lc9hK28HxtUwPu3+k4 T6QXG843dv7AFj6lc+K3ELzSltltDhwFQOmYJPDZT+SWv48+UAreU59+D9WgVXmeFm8p amQ7jnEdgJDX7lmB9Y1t80LDwK5m5Ga8QT+b1WSa6z/LxlIi1hbnSyuxJqAOG+ItaiMe 5RoA== X-Gm-Message-State: ACrzQf29LIbTAa9Pt4cInpCQ5WolPN6iW8v3NS2gCYcu/TP7LhpDHiH0 ye3m+kVP+4dHh6YVvhASieQr08dIOxeQ6eczsbAomiNbDIdspQ== X-Google-Smtp-Source: AMsMyM4VoZDFjRcIiGw22lEMuZwIHzKY7LMVAOqosD+NtlWcWBQ/fXXhxI6szaly7PeUDk2WhkPPdZkHp6doW5axqQs= X-Received: by 2002:a81:6b07:0:b0:36a:1594:7222 with SMTP id g7-20020a816b07000000b0036a15947222mr30175495ywc.81.1666871286419; Thu, 27 Oct 2022 04:48:06 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a81:6105:0:0:0:0:0 with HTTP; Thu, 27 Oct 2022 04:48:05 -0700 (PDT) From: =?utf-8?b?6Lev6L6J?= Date: Thu, 27 Oct 2022 11:48:05 +0000 Message-ID: Received-SPF: pass client-ip=2607:f8b0:4864:20::1141; envelope-from=luhux76@gmail.com; helo=mail-yw1-x1141.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 3adf47b102b0ddcbdee264e6b7f9a1371482adae Mon Sep 17 00:00:00 2001 From: LuHui Date: Wed, 26 Oct 2022 15:57:09 +0800 Subject: [PATCH] gnu: Add new variable scrcpy * gnu/packages/android.scm (scrcpy): Add new variable. --- gnu/packages/android.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index 91aaba089f..fccf71a4cc 100644 --- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2020 Sergey Trofimov ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Petr Hodina +;;; Copyright © 2022 LuHui ;;; ;;; This file is part of GNU Guix. ;;; @@ -37,6 +38,7 @@ (define-module (gnu packages android) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system go) + #:use-module (guix build-system meson) #:use-module (guix build-system python) #:use-module (guix build-system trivial) #:use-module ((guix licenses) #:prefix license:) @@ -49,14 +51,17 @@ (define-module (gnu packages android) #:use-module (gnu packages golang) #:use-module (gnu packages image) #:use-module (gnu packages java) + #:use-module (gnu packages libusb) #:use-module (gnu packages linux) #:use-module (gnu packages pcre) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) #:use-module (gnu packages readline) + #:use-module (gnu packages sdl) #:use-module (gnu packages selinux) #:use-module (gnu packages serialization) #:use-module (gnu packages sphinx) @@ -64,6 +69,7 @@ (define-module (gnu packages android) #:use-module (gnu packages time) #:use-module (gnu packages tls) #:use-module (gnu packages version-control) + #:use-module (gnu packages video) #:use-module (gnu packages virtualization) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml)) @@ -1298,3 +1304,35 @@ (define-public android-file-transfer with Android devices using MTP. It also allows the Android device to be mounted via FUSE.") (license license:lgpl2.1+))) + +(define-public scrcpy + (package + (name "scrcpy") + (version "1.24") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Genymobile/scrcpy") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "069139c66w7myrpx7jwy6xllp1l1r2gkw8mf385wfc0gjm4jbgcq")))) + (build-system meson-build-system) + (native-inputs + (list pkg-config)) + (inputs + (list sdl2 libusb ffmpeg)) + (arguments + `(#:tests? #f + #:phases (modify-phases %standard-phases + (add-after 'unpack 'disable-server-build + ;; because server build need android ndk + ;; you can use SCRCPY_SERVER_PATH to instead default server binary + (lambda _ + (truncate-file "server/meson.build" 0)))))) + (home-page "https://github.com/Genymobile/scrcpy") + (synopsis "Display and control your Android device") + (description "This application provides display and control +of Android devices connected via USB or over TCP/IP.") + (license license:asl2.0))) -- 2.38.0