Subject: [bug#67131] [PATCH 3/7] gnu: python-pygame: Update to 2.5.2.

From: Adam Faiz <[email-masked]>
Date: Mon, 13 Nov 2023 01:10:20 +0800

>From 02d31d0842c19a62e16d849e012ed86db7888076 Mon Sep 17 00:00:00 2001
Message-ID: <0[email-masked]>
In-Reply-To: <[email-masked]>
References: <[email-masked]>
From: AwesomeAdam54321 <[email-masked]>
Date: Sun, 12 Nov 2023 16:18:40 +0800
Subject: [PATCH 3/7] gnu: python-pygame: Update to 2.5.2.

* gnu/packages/game-development.scm (python-pygame): Update to 2.5.2.
[arguments]: Adapt the 'fix-build-config phase to the new version.
---
 gnu/packages/game-development.scm | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 1cf46464b9..45d63b8cdf 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -1328,13 +1328,13 @@ (define-public quesoglc
 (define-public python-pygame
   (package
     (name "python-pygame")
-    (version "2.1.2")
+    (version "2.5.2")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "pygame" version))
               (sha256
                (base32
-                "0g6j79naab7583kymf1bgxc5l5c9h5laq887rmvh8vw8iyifrl6n"))))
+                "0jn2n70hmgr33yc6xzdi33cs5w7jnmgi44smyxfarrrrsnsrxf61"))))
     (build-system python-build-system)
     (arguments
      (list
@@ -1348,7 +1348,10 @@ (define-public python-pygame
                  "origincdirs = os.environ['C_INCLUDE_PATH'].split(\":\")")
                 (("ORIGLIBDIRS") "LIBRARY_PATH")
                 (("incdirs = \\[\\]") "incdirs = origincdirs")
-                (("libdirs = \\[\\]") "libdirs = origlibdirs"))))
+                (("libdirs = \\[\\]") "libdirs = origlibdirs")
+                (("sdl2-config") "pkg-config sdl2")
+                (("\\['sdl'\\]") "['sdl'], '--modversion'")
+                ((".dpkg-architecture.*,") ""))))
           (add-after 'unpack 'fix-sdl2-headers
             (lambda _
               (substitute* "buildconfig/config_unix.py"
-- 
2.41.0