Subject: [PATCH v3 2/6] gnu: crossguid: Update to ca1bf4b810e2d188d04cb6286f957008ee1b7681.

From: André Batista <[email-masked]>
Date: Sat, 8 Mar 2025 15:19:15 -0300

* gnu/packages/kodi.scm (crossguid): Update to
ca1bf4b810e2d188d04cb6286f957008ee1b7681, revision 3.
[build-system]: Change to cmake-build-system.
[argument] <#:phases>: Remove it, use defaults.
<#:tests?>: Set to false, as there are no tests.

Change-Id: I183ab953b0fb1092efbd7d17b0d3bfe2394cfe43
---
 gnu/packages/kodi.scm | 31 +++++--------------------------
 1 file changed, 5 insertions(+), 26 deletions(-)

diff --git a/gnu/packages/kodi.scm b/gnu/packages/kodi.scm
index 589fb386ab..8abe71ccb1 100644
--- a/gnu/packages/kodi.scm
+++ b/gnu/packages/kodi.scm
@@ -90,8 +90,8 @@ (define-module (gnu packages kodi)
   #:use-module (gnu packages assembly))
 
 (define-public crossguid
-  (let ((commit "fef89a4174a7bf8cd99fa9154864ce9e8e3bf989")
-        (revision "2"))
+  (let ((commit "ca1bf4b810e2d188d04cb6286f957008ee1b7681")
+        (revision "3"))
     (package
       (name "crossguid")
       (version (string-append "0.0-" revision "." (string-take commit 7)))
@@ -104,31 +104,10 @@ (define-public crossguid
                 (file-name (string-append name "-" version "-checkout"))
                 (sha256
                  (base32
-                  "1blrkc7zcqrqcr5msvhyhm98s2jvm9hr0isqs4288q2r4mdnrfq0"))))
-      (build-system gnu-build-system)
+                  "1x3jc4q6di79x3nlx36394s03yv1j1j5k0x6zljyk5iq78y4mfyz"))))
+      (build-system cmake-build-system)
       (arguments
-       '(#:phases
-         (modify-phases %standard-phases
-           (delete 'configure)          ; no configure script
-           (replace 'build
-             (lambda _
-               (invoke "g++" "-c" "guid.cpp" "-o" "guid.o"
-                        "-DGUID_LIBUUID")
-               (invoke "ar" "rvs" "libcrossguid.a" "guid.o")))
-           (replace 'check
-             (lambda _
-               (invoke "g++" "-c" "test.cpp" "-o" "test.o")
-               (invoke "g++" "-c" "testmain.cpp" "-o" "testmain.o")
-               (invoke "g++" "test.o" "guid.o" "testmain.o"
-                       "-o" "test" "-luuid")
-               (invoke (string-append (getcwd) "/test"))))
-           (replace 'install
-             (lambda* (#:key outputs #:allow-other-keys)
-               (let ((out (assoc-ref outputs "out")))
-                 (install-file "guid.h" (string-append out "/include"))
-                 (install-file "libcrossguid.a"
-                               (string-append out "/lib"))
-                 #t))))))
+       '(#:tests? #f))
       (inputs
        `(("libuuid" ,util-linux "lib")))
       (synopsis "Lightweight universal identifier library")
-- 
2.48.1