unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#58816] [PATCH] gnu: Add new variable scrcpy
@ 2022-10-27 11:48 路辉
  2022-11-01  6:39 ` 宋文武 via Guix-patches via
  0 siblings, 1 reply; 3+ messages in thread
From: 路辉 @ 2022-10-27 11:48 UTC (permalink / raw)
  To: 58816

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 0001-gnu-Add-new-variable-scrcpy.patch --]
[-- Type: text/x-patch, Size: 3684 bytes --]

From 3adf47b102b0ddcbdee264e6b7f9a1371482adae Mon Sep 17 00:00:00 2001
From: LuHui <luhux76@gmail.com>
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 <sarg@sarg.org.ru>
 ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
 ;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
+;;; Copyright © 2022 LuHui <luhux76@gmail.com>
 ;;;
 ;;; 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#58816] [PATCH] gnu: Add new variable scrcpy
  2022-10-27 11:48 [bug#58816] [PATCH] gnu: Add new variable scrcpy 路辉
@ 2022-11-01  6:39 ` 宋文武 via Guix-patches via
  2023-03-21 12:22   ` bug#58816: " Maxim Cournoyer
  0 siblings, 1 reply; 3+ messages in thread
From: 宋文武 via Guix-patches via @ 2022-11-01  6:39 UTC (permalink / raw)
  To: 路辉; +Cc: 58816

路辉 <luhux76@gmail.com> writes:

Hello,

> From 3adf47b102b0ddcbdee264e6b7f9a1371482adae Mon Sep 17 00:00:00 2001
> [...]
> +     `(#: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))))))

I think without 'scrcpy-server' this package won't be useful.  Require
user to download or compile it via android ndk seems awkward.  Hope we
can find a way to package it properly...




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#58816: [PATCH] gnu: Add new variable scrcpy
  2022-11-01  6:39 ` 宋文武 via Guix-patches via
@ 2023-03-21 12:22   ` Maxim Cournoyer
  0 siblings, 0 replies; 3+ messages in thread
From: Maxim Cournoyer @ 2023-03-21 12:22 UTC (permalink / raw)
  To: 宋文武; +Cc: 路辉, 58816-done

Hello,

宋文武 <iyzsong@envs.net> writes:

> 路辉 <luhux76@gmail.com> writes:
>
> Hello,
>
>> From 3adf47b102b0ddcbdee264e6b7f9a1371482adae Mon Sep 17 00:00:00 2001
>> [...]
>> +     `(#: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))))))
>
> I think without 'scrcpy-server' this package won't be useful.  Require
> user to download or compile it via android ndk seems awkward.  Hope we
> can find a way to package it properly...

Agreed; and since there hasn't been an update in 20 weeks, I'm closing
this until it can be resubmitted with the server component packaged.

-- 
Thanks,
Maxim




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-21 12:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-27 11:48 [bug#58816] [PATCH] gnu: Add new variable scrcpy 路辉
2022-11-01  6:39 ` 宋文武 via Guix-patches via
2023-03-21 12:22   ` bug#58816: " Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).